Alphabetizing the Profiles list in UCM
By Kyle Hatlestad on Oct 30, 2009
But some folks have asked if it's possible to alphabetize the list of Profiles so that it's easier to pick out a specific profile.
One quick way is to alphabetize the entire UCM menu. Jason Stortz over at Redstone Content Solutions wrote a terrific component that does just that. He's made available on his blog. I must admit, I'm so used to the alphabetized version of the UCM menus...it's hard for me to go back to the standard version.
But if you want to only alphabetize the profile menus themselves, then there is a file you can modify to do so. The profiles are defined in the file [ucm dir]/data/profiles/document/dpprofiles.hda. If you open that in a text editor, you'll see that the profile entries are part of the DocumentProfiles result set.A quick note about .hda format.... for result sets, the first line indicates the name of the resultset such as @ResultSet DocumentProfiles. The next line indicates the number of data elements in the resultset (and thus the number of lines that make up each result set entry), in this case 4. The next set of lines define each element in the result set, in this case dpName, dpDescription, dpTriggerValue, dpDisplayLabel. And then the following lines after that are the data values themselves.
So what you can do is simply move around the sets of data in the result set to match the order that you want. But be careful... you want to make sure you don't delete or add extra lines as the resultset is very sensitive to the number of lines.
After you make your changes and save the file, you'll need to restart the server to clear it's cached settings of the profiles.