Creating menus for your website
Ektron lets you create and maintain a drop-down menu system for your website. The menu options can link to content, library files, external hyperlinks, and submenus. The following image shows an open Products menu on the Ektron Ontrek sample site.
You must be one of the following users to work with menus.
An Ektron developer can use the MenuView templated server control to place a menu on a Web form. See MenuView.
NOTE: If you choose to hide the border that surrounds content when you are logged in, the Add and Edit options are also hidden. This lets you view the page as it appears when not logged in. If the page is set to show borders and you still do not see Add and Edit, the feature may be turned off. Ask your administrator or website developer for more information.
You can add a menu to a content folder, or to the root folder through Workarea > Content > Menus. When you add a menu to a content folder, the menu is associated with that folder. After creating the menu, you can assign items to it. See Adding a menu item .
To do this:
You can also assign a URL link to a menu using this field. If you do, and the user clicks the link text or image, he jumps to the specified page.
For example, in this field, you assign the product landing page, siteroot/products.aspx
. In the illustration above, if the user moves the cursor over Products, the assigned menu appears. However, if the user clicksProducts , he jumps to siteroot/products.aspx
. The path may be....
siteroot/jobs.aspx
wellness.aspx?id=40&wellness=Hemophilia
http://www.example.com
.NOTE: This field applies to content only. It has no effect on other types of menu items (such as images). Also, this field only affects content that dynamically references a content block, such as /CMS400Min/therapies.aspx?id=84
. If the menu option is a template that includes content (for example, /CMS400Min/news.aspx
), the template identified here is ignored.
To do this:
You can also assign a URL link to a menu using this field. If you do, and the user clicks the link text or image, he jumps to the specified page.
For example, in this field, you assign the product landing page, siteroot/products.aspx
. In the illustration above, if the user moves the cursor over Products, the assigned menu appears. However, if the user clicksProducts , he jumps to siteroot/products.aspx
. The path may be....
siteroot/jobs.aspx
wellness.aspx?id=40&wellness=Hemophilia
http://www.example.com
.NOTE: This field applies to content only. It has no effect on other types of menu items (such as images). Also, this field only affects content that dynamically references a content block, such as /CMS400Min/therapies.aspx?id=84
. If the menu option is a template that includes content (for example, /CMS400Min/news.aspx
), the template identified here is ignored.
When you assign a folder or template to a menu, it exposes a menu whenever a content item that resides in a selected folder appears, or a content item that uses 1 or more of the selected templates appears. As a result, a user looking for a specific item sees similar items. For example, if your website sold books, your folders or templates may be organized by genre. One of your folders or templates is Teen Fiction. You create a submenu that contains the top 5 sellers in Teen Fiction. You then associate the Teen Fiction folder or template with that submenu. When a site visitor finds views a book in that category, a Flex Menu in the page’s left column displays the top 5 Teen Fiction titles.
All of the following conditions must be true for the Flex Menu to automatically display selected items on an associated submenu.
NOTE: Navigation to the content can consist of clicking a quicklink, a menu option, a content list, the result of a search, and so on.
EnableSmartOpen
property is true
appears on the screen.NOTE: Deleting a menu automatically deletes all menu items associated with it. Do not confuse the menu link with the item itself. For example, deleting a menu deletes its links to content but has no effect on the content.
NOTE: Only certain users are allowed to delete menus. See Auditing changes.
You can add menu items in the following ways:
You can add the following types of menu items.
IMPORTANT: If you check items then go to another screen before clicking Add, the items on the first screen are not added to the menu.
You can assign addition information to the menu item by editing the menu from the View Menu screen.
Tip—Alternate Method for Creating a Menu Item
You can use the following alternative method for creating a menu item.
- Go to a content folder.
- Click items to be assigned.
- Right click the mouse and select Copy.
- Locate the menu, right click the mouse, and select Paste Items to Menu.
The View Menu screen reappears, showing the new content.
NOTE: To insert assets, the menu’s folder must contain library assets. However, you can insert library assets from other folders for which you have permission.
https://world.episerver.com/ektron/
(external link)/news/pr.aspx
(root of the website)pr.aspx
(relative path)NOTE: When you add an external hyperlink menu item, the URL does not get added to the library nor is an ID assigned to it. So, when you save the menu item, it is not added to the Ektron database nor can it be retrieved for future use.
To do this:
You can also assign a URL link to a menu using this field. If you do, and the user clicks the link text or image, he jumps to the specified page.
For example, in this field, you assign the product landing page, siteroot/products.aspx
. In the illustration above, if the user moves the cursor over Products, the assigned menu appears. However, if the user clicksProducts , he jumps to siteroot/products.aspx
. The path may be....
siteroot/jobs.aspx
wellness.aspx?id=40&wellness=Hemophilia
http://www.example.com
.NOTE: This field applies to content only. It has no effect on other types of menu items (such as images). Also, this field only affects content that dynamically references a content block, such as /CMS400Min/therapies.aspx?id=84
. If the menu option is a template that includes content (for example, /CMS400Min/news.aspx
), the template identified here is ignored.
To edit a menu item, click on its name in the View Menu screen. The Edit Menu Item screen appears.
When you edit a menu item, you can make the following specifications:
To do this:
You can also assign a URL link to a menu using this field. If you do, and the user clicks the link text or image, he jumps to the specified page.
For example, in this field, you assign the product landing page, siteroot/products.aspx
. In the illustration above, if the user moves the cursor over Products, the assigned menu appears. However, if the user clicksProducts , he jumps to siteroot/products.aspx
. The path may be....
siteroot/jobs.aspx
wellness.aspx?id=40&wellness=Hemophilia
http://www.example.com
.Alternatively, hover the cursor over the menu in the left panel, right click the mouse, and click Reorder Items.
The Reorder Items screen appears.
NOTE: For information about supporting multiple languages on your website, see Working with multi-language content.
NOTE: To export menus to an XLIFF file for translation by an external agency, see Exporting content to XLIFF.
You can create an edition of any menu in every supported language. When a site visitor selects a language and clicks a menu link, Ektron displays the menu in that language if it is available. If it is not available, nothing appears.
Before creating or translating a menu, you should create or translate all content that will be on the menu. In this way, you can link this content to the new menu. However, after creating a menu, you can add new items to it.
To translate a menu into any supported language, you can go to the menu on your website or from go to it in the Workarea.
The View Menu screen appears for the selected menu.
The Add Menu screen appears.
To do this:
You can also assign a URL link to a menu using this field. If you do, and the user clicks the link text or image, he jumps to the specified page.
For example, in this field, you assign the product landing page, siteroot/products.aspx
. In the illustration above, if the user moves the cursor over Products, the assigned menu appears. However, if the user clicksProducts , he jumps to siteroot/products.aspx
. The path may be....
siteroot/jobs.aspx
wellness.aspx?id=40&wellness=Hemophilia
http://www.example.com
.NOTE: This field applies to content only. It has no effect on other types of menu items (such as images). Also, this field only affects content that dynamically references a content block, such as /CMS400Min/therapies.aspx?id=84
. If the menu option is a template that includes content (for example, /CMS400Min/news.aspx
), the template identified here is ignored.
IMPORTANT: Starting from release 8.6, the Flex Menu and Menu server controls were replaced by the FrameworkUI: <ektron:MenuView> templated server control. If you are already using the Flex Menu and Menu server controls, you can continue to do so, but Ektron recommends using current versions of functionality.
Managing menus is a two-step process. The previous section describes the first step, which is how Ektron users create and update menus. The second step involves a developer placing a menu server control on a Web form. The server control manages the display of the menu on your website. This section introduces concepts that affect all of them, and explains the differences between them.
Ektron provides 2 menu server controlA server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.s: Flex Menu and Menu.
Type | Appearance |
---|---|
Flex |
(Other styles are available) |
Menu |
|
Property |
Flex Menu |
Menu |
|
|
|
Shutter menu (When you click a menu, it opens directly below the menu title) |
|
|
Secondary menu opens when cursor hovers over it |
(alternative: secondary menu opens when clicked) |
|
Starts out collapsed; expands as site visitor selects secondary menu |
|
|
All menu levels open when page displays |
|
|
Can display secondary menu to the right of the root menu, instead of directly below it |
|
|
How appearance is modified |
Server control properties and style sheet |
Xslt and style sheet |
How behavior is modified |
Xslt |
Xslt and style sheet |
Option to launch menu links in a new window |
|
|