In this task you will learn how to add a new sort to the directory style. In this example we choose the <BaseQuery Name="Fred4Pages" in the FRED4_Config.xml configuration file. |
You will be able to perform this task only if: •You already opened the fred4_config.xml file as explained in TASK: Open for editing one or more files with directory styles, ordered the view as explained in TASK: Display an ordered view of directory style elements, and located the <DirectoryStyle Name="List" under the <BaseQuery Name="Fred4Pages". |
1.Expand the <DirectoryStyle Name="List" element so you see all its elements collapsed: 2.Expand the SortList and then expand the <Sort Name="Number": 3.Select all from <Sort Name="Number" till the first </Sort>, and then press CTRL+C. 4.Make an empty line between two sorts (and anyhow, before the </SortList>) and then press CTRL+V. 5.Change the name of the sort in <Sort Name="..."> 6.Delete the <SortDescriptions lines you don't need and change the remaining ones to contain the sortable attributes you want. 7.Save changes and import them in database as explained in TASK: Save changes and import them in database. 8.Restart Fred and then look at the navigator on the Pages main tab: the new sort is available in the sort selector. |