U4-9736 - All new "Insert" items in template editor should have Filter/Search fields

Created by Douglas Robar 05 Apr 2017, 15:30:31 Updated by Sebastiaan Janssen 04 Sep 2017, 09:33:03

Seen in 7.6RC

Fresh install, no starter kit, completely empty site

Create a template (or create/open a partial view)

Click the Insert toolbar button. You have options for Value, Partial view, Macro and Dictionary item

Each should have a Filter/Search field at the top, as does Macro. This is especially useful when a site grows large.

Though, it shouldn't be displayed if there are no items to select (with an empty site, there are no macro or dictionary items so provide simple feedback but no other 'noise' in the dialog)

The behavior of the Filter/Search field varies slightly depending on which item (Value, partial, macro, dictionary) is chosen. I'd suggest:

Value: The search would look within the alias but also in the Name and Description fields for each property... because with big sites or ones you inherit you don't always know exactly what you're looking for and don't want to change context to go look. To aid that, would be amazing to have some additional info on each property (maybe on hover as a tooltip? dunno, but somehow) so you can see which doctypes/mediatypes the property is used on and (somehow, no clue what UI would work for this) show the name and description. This gets tricky with properties such as 'bodyText' and 'summary' because they may have multiple names and descriptions used throughout the site. But that's just why you want the feedback, to be sure you're selecting the proper item.

Partial: search for filename. Display in abbreviated treeview (don't show folders and files that don't meet your search criteria) and don't allow folders to be selected.

Macro: search the name and alias fields of all Macros because sometimes they are very different and you don't always remember that so search both. Also search the filename of the macro's chosen file to render (mvc partial, xslt, usercontrol or razor script) in case that gives a match as well. Again, the point is to make it easy to find what you're looking for even on large or unfamiliar sites.

Dictionary: search the dictionary item name as well as any partial hits within the various translations of each item.


Priority: Normal

Type: Bug

State: Open


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.6.0

Due in version:


Story Points: