In this section, the starting point is that you have not done anything about web menus yet. You have a default application with a default menu.
Do NOT customize default pages
The default application only gives access to default info pages - the standard pages offered by USoft. It is good practice to AVOID customizing default pages, even if Web Designer lets you do that. This is because you never know when you would like to revert work and re-instate the default.
Replace the default menu by a user-defined menu early on
So, when you begin working with Web Designer USoft strongly recommends that you:
•Create your own ("non-default") pages before you start "painting" pages. •Define you own ("non-default") menu that offers navigation to these non-default pages. The second step, offering yourself navigation to your work, requires that you:
•Define your own menu. •Replace the default menu by your own menu. Defining your own menu
To define your own menu:
1. | In the Catalog, on the Menus tab, right-click on the MenuPage node, and choose New. |
A child node called "Menu Page - New" appears.
2. | Right-click the new "Menu Page - New" node and Rename to "MyMenuPage". |
3. | Right-click the "MyMenuPage" node and choose Open. |
| The MyMenuPage object opens in the preview pane. An INSERT option appears in the main menu. |
4. | Using the Insert, Menu Line option from the main menu, insert as many menu options as you like in the menu. |
5. | For each of these Menu Lines, right-click on the Menu Line option in the preview pane and choose "Property Inspector" to open the Property Inspector for that menu line. |
6. | In each case, set the ID, Name, Prompt and URI properties to the name of the non-default info page that you want that menu option to lead to. |
| For example, if you have worked on a subclass of a default Reservations page that you have named "MyReservations", make sure you set the ID, Name, Prompt and URI properties to "MyReservations". |
7. | Save your user-defined menu. |
Replacing the default menu by your new menu
To replace the default menu by your new menu:
1. | In the Catalog, on the Pages tab, find the "ApplicationPage" page class, right-click on it and choose Open. |
| You need this page class because it is the start page of the default application. The name of this start page is the value of the StartPage property of the Publication Configuration that you publish against. |
2. | In the Object Tree on the right-hand side, find the "ApplicationMenu" MenuControl object, right-click on it and choose "Property Inspector". |
| The Property Inspector opens for this MenuControl object. |
3. | For the Menu File property, replace DefaultMenu.xml by Menus.xml. |
4. | For the Menu Name property, replace PageListMenu by the name of your menu page (we used "MyMenuPage"). |
6. | Re-publish the application (press F8). |
7. | You may have to stop and re-start the Rules Service. |
8. | Browse the application. You should now see your own menu instead of the default menu. |
See Also
Reverting to the Default Menu
Defining a Menu
Displaying a Menu in Your Application
Adding Authorization to Menus
|