craft3-templateselect icon indicating copy to clipboard operation
craft3-templateselect copied to clipboard

FR: Use autosuggest component for template selection

Open tomkiss opened this issue 2 years ago • 1 comments

Hi there,

Craft has a nice built-in autosuggest component which works great for template selection. I'm familiar with it because the Vizy field uses it to great effect.

image

My feature request/suggestion is to follow this same approach and use Craft's built in autosuggest component, to provide an improved UI for template selection.

I've added this in a Pull Request for you to consider. It needs testing and I've only checked it on Craft 4, but please let me know what you think.

tomkiss avatar Sep 13 '23 18:09 tomkiss

@tomkiss Thanks for this, appreciate it!

Already commented on your PR, but: I do like this suggestion. I just added an option to have "friendly" template names where the path segments are capitalized and slashes replaced with a >.

Do you know if there is a way to control the rendering of the value with this field?

I might have to revert that change in favour of this, since this might be more valuable. I'll give it some thought.

sjelfull avatar May 12 '24 20:05 sjelfull