processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Template order in InputFieldSelector to alphabetical #466

Closed j4rnonie closed 6 months ago

j4rnonie commented 1 year ago

We have a long list of templates in use and choosing the right template from the InputFieldSelector drop down is pain in the butt as current order is based on template name, but it is shown in select option as template title (in most configurations).

My suggestion : add : if( $showFieldLabels > 0) asort(templates); before row https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldSelector/InputfieldSelector.module#L423

ryancramerdesign commented 7 months ago

Thanks @j4rnonie I have added this, as well as corrected it in a couple other spots in the same file.

jmartsch commented 7 months ago

Thank you @ryancramerdesign. I also wanted this badly.

j4rnonie commented 6 months ago

Thanks Ryan!