I've recently edited some of the drop down menus and have made some additions. The additions are appearing at the bottom of the drop down. Is there anyway, short of modifying the php code, to make them resort and alphabetize?
I've recently edited some of the drop down menus and have made some additions. The additions are appearing at the bottom of the drop down. Is there anyway, short of modifying the php code, to make them resort and alphabetize?
You can re-arrange the order in the studio
Really? Care to share how? I can only figure out how to SWAP entries. That is, if I drag a new entry on top of an old entry it swaps them.Originally Posted by sacramentojoe
Originally Posted by mhoppes
Drag and Drop Database Values will reorder list.
...well I guess that's same as what you said above, but swap until the order you want is obtained.
Last edited by Piepkorn; 2007-07-09 at 03:53 PM.
You have to move each item one line at a time. For example, if the item you want to move is the fourth item in the list, and you want it to appear at the top, you would move it up to the third position, then up to the second position, and then to the first position. As you move it each time, it swaps with the item in that row. A bit tedious but it works.
I believe the original poster wanted an automated way of doing this. Assuming you have a thousand entries in your dropdown and then you forgot something in the middle, it would be inefficient to reorder everything from the added item down. Unfortunately some coding might be required here, doing a sort of the items everytime it has to be displayed.
two ways:
1.Down and dirty
a. Go to your EditView.php and figure aout the name of the field.
b. Then figure out which $app_list_string['?????'] it is generated by.
c. open custom/include/language/YOUR_LANGUAGE.php
d. Can you see your $app_list_strings node? do it manually now if you don't have too many.
2.Not so dirty
Do a.
Do b.
c. Open DetailView.php
d. right before you see your $app_list_strings['????'] used like this
do thisPHP Code:get_select_options_with_id($app_list_strings['??????'], $focus->LOOKSLIKEYOURFIELDNAME));
hope this helpedPHP Code:natcasesort($app_list_strings['??????']) ;
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks