You format the look and feel of menu elements using HTML and placeholder tags.
This example shows the basic structure of the element design used by a menu to format the search data. You enter the following tags into the Design for each menu search result section of the menu element form.
Design | Details |
---|---|
|
Instead of a URL, use an href placeholder. |
|
Instead of text, insert a title placeholder. |
This is repeated for every link returned by the search query defined in the menu element. You can also use a TitleLink tag:
Design | details |
---|---|
|
This produces the same result as the previous example. |
When creating menus for use in rendering portlets, a URLCmpnt tag is used to create a link instead of a placeholder.
<a HREF= "[URLCmpnt context="autofill" type="content" mode="portal" portalTarget="URLMap">" target="_blank"> [Property context="autofill" type="content" field="title"] </a> <br>
To display images in a menu instead of text, replace the name placeholder with a reference to an Image element selected from content or site areas.
Design | Details |
---|---|
|
Instead of a URL, use an href placeholder. This is where the URL of the menu item is inserted in the rendered menu. |
|
Instead of a name placeholder (as in the previous
example), insert an element tag. The source type can either be content
or site area. The context is autofill. In this example, the field being referenced is "Image". The site areas or content being returned must also contain an image element named "Image". The images you store in the site area or content can be different, but they must all have the same label. |
To add navigation controls to a menu you add a reference to a page navigation element in either the footer or header.
Design | Details |
---|---|
|
Instead of a URL, insert a URL placeholder here. This is where the URL of the menu item is inserted in the rendered menu. |
|
Instead of text, insert a name placeholder. |
Design | Details |
---|---|
|
Add a reference to a previously created page navigation element to add navigation features to a menu design. In this example, the page navigation element is referenced from a page navigation component called "pagenav". |