In this task you will learn how to add a new 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". |
The best approach is to copy and paste an existing directory style, and then to change what's needed. 1.Expand the <DirectoryStyleList> element so you see all its <DirectoryStyle elements collapsed: 2.Select a directory you want to duplicate (the entire collapsed line) and then press CTRL+C. 3.Make a new line above the </DirectoryStyleList> and then press CTRL+V. 4.Modify the name of the directory style to something else, unique in this <DirectoryStyleList> section. 5.Modify the sort lists and the columns (remove the columns you don't need as explained in TASK: Remove a column from a directory style and add additional columns as explained in TASK: Add new column to the directory style). 6.Save changes and import them in database as explained in TASK: Save changes and import them in database. 7.Restart Fred and then look at the navigator on the Pages main tab: the new directory style is available. |