|
MenuArea Element |
|
|
MenuArea element defines the location on the page for the generated DHTML menu and it links the necessary Javascript files to the page.
The element can be used either horizontally on the top of the page or vertically on the left of page. The dimensions of the element can be changed according to the design of the Menu. The element can be placed into the individual pages or it can be placed into the site template page if it is standard for all the pages. "Menu Configuration" Property The "Menu Configuration" property of the element should be assigned the name of the MenuConfig element configured in the Common Definitions page. The adaptation of the MenuArea element There are 2 script elements in the MenuArea element. The script element that links the 3.party DHTML menu component to the page The script element of the left links the Javascript file provided by a DHTML Menu component vendor. The current value of the element's "External Script" property is stm31.js ("Sothink DHTML Menu"). However this Javascript file is not available in the library since a licence required for it. You can use any DHTML Menu component by including its Javascript file to the project and linking it to the page through the "External Source" property of the script element. The script element that links the mor.DTHMLMenu service to the page The script element on the links the Action Service class of mor.DHTMLMenu component. The value of its "External Script" property is defined as follows: GenerateMenu.doms?uid=$vof(/request.RefreshId)&config=%vof(@MenuArea/menuConfig)&_enc=%vof(/charset) Service Parameters
Unless the values of these parameters remains the same the menu service will not be called again. If for any reason the menu Javascript steer file needs to be regenerated you can use additional parameters in this property. Multi-lingual menus If your application should support more than one language then you can add _lang parameter into the request as follows. GenerateMenu.doms?uid=$vof(/request.RefreshId)&config=%vof(@MenuArea/menuConfig)&_enc=%vof(/charset)&_lang=$vof(/request.LANG)
an the menu query property of the MenuConfig element can be adapted as follows.
|