Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

Insert Menu

Overview

Inserting a menu adds a process that is able to load and show a menu in your site. Using menus in one form or another is the most common way to control navigation in web applications.

You can read more about menus in WebsydianExpress here.

Preparations

Before inserting the menu in the site structure, it will in most cases be necessary to create a new presentation for the generic menu loader process (process ID: WSMNUP). The reason for this is that each menu typically will have a different layout. The new presentation must specify a new template (using the template suffix). 

You can read more about specifying a presentation for an existing process here.

Insert menu

The menu item "Site structure -> Site Structure" is used for accessing the site structure tree.

A menu can be used in three different contexts:

Please note, that inserting a menu does not give you any menu items for the menu - they must be assigned afterwards.

You can find more information about this in insert URL in menu, insert business process in menu, insert frameset in menu, and insert menu in menu.

Display menu in frame when frameset is loaded

  1. Select the frameset that should load the frame in the site structure tree.
  2. Press "Add". This starts a wizard that will lead you through the process.
  3. Select "Create new site element" and "Menu", press "Next".
  4. Select the presentation of the menu element to be used by pressing "Select".
    Use the search facility to find the presentation.
  5. Supply information about the site element, and press "Next"
  6. Assign the roles for the site element, and press "Finish"

Display menu in frame when menu item is activated

  1. Select the menu that must contain the menu item loading the URL.
  2. Press "Add". This starts a wizard that will lead you through the process.
  3. Select "Create new site element" and "Menu", press "Next".
  4. Select the presentation of the menu element to be used by pressing "Select".
    Use the search facility to find the presentation.
  5. Supply information about the site element, and press "Next"
  6. Assign the roles for the site element, and press "Finish"

Display menu in entire browser page

In this case the menu will be the only element loaded, when the site is started.

This might be used if you want to have a start menu as the first (and only) thing shown to a group of users.

  1. Select the site root element.
  2. Press "Add". This starts a wizard that will lead you through the process.
  3. Select "Create new site element" and "Menu", press "Next".
  4. Select the presentation of the menu element to be used by pressing "Select".
    Use the search facility to find the presentation.
  5. Supply information about the site element, and press "Next"
  6. Assign the roles for the site element, and press "Finish"

Create a sub menu

This section describes the necessary steps you need to take to add a menu item that loads a submenu to an existing menu.

This is done in two steps - first you define that the menu item, when activated, must load a frameset, which splits a frame into two - one part, which must contain the menu - and another part, which will be populated by the menu items in the new menu.

This is in fact just a combination of the steps needed to create a frameset and letting a menu populate a frame when it is loaded by the frame set.

But as it is a quite common task the necessary steps are described in this section as one process.

Add frameset

  1. Select the menu that should contain the new menu item.
  2. Press "Add". This starts a wizard that will lead you through the process.
  3. Select "Create new site element" and "Frameset", press "Next".
  4. Select the presentation of the frameset element to be used by pressing "Select".
    Use the search facility to find the presentation.
  5. Supply information about the site element, and press "Next".
  6. Assign the roles for the site element, and press "Finish".

Define frames in frameset template

Open the HTML template for the presentation used in the previous step

Use the /(NAME-...) replacement marker to specify the names of the frames, you wish the frameset to load.

You will also define the physical properties of the frames in the frameset template.

For each of these frames you need to define the content in the site structure. Either as a new frameset, as a business process or as a menu.

In the situation, where you want a submenu, you will most likely want to define two frames in the frameset template - one for the submenu - and one for showing the output of the menu items of the submenu.

Define content of menu frame

The submenu is to be loaded into the frame as the frame is loaded by the frameset.

  1. Select newly created frameset in the site structure tree.
  2. Press "Add". This starts a wizard that will lead you through the process.
  3. Select "Create new site element" and "Menu", press "Next".
  4. Select the presentation of the menu element to be used by pressing "Select".
    Use the search facility to find the presentation.
  5. Supply information about the site element, and press "Next"
  6. Assign the roles for the site element, and press "Finish"

Define menu items for menu

A menu in itself does not really give you any content for the menu frame.

Read more about how you define different types of elements as menu items here:

Insert URL in menu, Insert business process in menu, Insert frameset in menu, and Insert menu in menu.

Define content of the other frame

Apart from defining a place to put the menu - the frameset will also provide at least one other frame (the rest of the frame, which was split).

Unless you wish this frame to be empty until a menu item has been selected you must also specify what you want to use for populating the frame.

In many cases you will want to use one of the menu items used in the sub menu for populating the frame.

You can find information about how to populate the frame (as it is loaded) in the following sections:

Populate with business process, populate with URL, populate (split) with frameset, populate with menu.