![]() |
||||||||||||||||||||
imScript Manual |
![]() |
Menu examples |
||||||||||||||||||
![]() |
||||||||||||||||||||
|
![]() |
Simple menu <?imcms:menu ?> tag initiates a menu and <?/imcms:menu?> tag completes a menu. The simple menu can be created in following way: <?imcms:menu?><?/imcms:menu?> Using above-mentioned way it is possible to create one ore several links. All links, created in that way will be placed in one row with gap between them. Whatever lies between <?imcms:menu?> and <?/imcms:menu?> will be repeated (loop) once for each link. All of the menu blocks will be automatically numbered in system from 1 and further in order they inserted in template. In order to control menu blocks in code it is possible to mark them by inserting attribute no=’x’ inside numbered tag. To give menu a numbered list look the menu should be created in following way: <UL> If the menu block contains none of the active/published links it will not be able on page in normal mode. The <?imcms:menuloop?> and <?/imcms:menuloop?> tags are use inside menu code to control it’s repeated part (loop). Without those tags everything betveen <?imcms:menu?> and <?/imcms:menu?> will be repeated (loop). Previous example can be created in following way: <?imcms:menu no='2'?> In following example the menu will be created in table form. If the menu block contains none of the active/published links it will not be able on page in normal mode. The table rows repeated with help of <? imcms : menuloop ?> tag around: <?imcms:menu no='3'?> To apply different look for each menu-loop row use <?imcms:menuitem?> and <?/imcms:menuitem?> tags to create different properties in repeated code. <?imcms:menu no='4'?> In the following example is used <? imcms : menuitem ?> to create menu in three columns. Because there is no <?imcms:menuitemhide?> tag in the “loop” then all empty items is displayed to complete entire “loop” with three columns. So the loop generates valid HTML code that functioning in all common browsers. Example: <?imcms:menu no='1'?> To create menu items with pictures/buttons instead of text use tag. There is a possibility to edit and sort pictures directly in administration mode. Pictures can be uploaded in system through “file manager” in administration mode and then inserted in menu from “Image archive” through “Browse” button in “Page info” window. In that kind of menu the imCMS system is not fully in use. Certainly, it’s easier to update page without uploading new image each time to edit link to some page. By using the Stylesheets (CSS) it’s possible to reach almost full control of link fonts and layouts. It is possible to create sophisticated navigation and graphics without using images almost at all. It is possible to use tag with other menu tags. No necessarily that it must be a complete button, e.g. it can be some kind of list item image in same color spectrum as current page or picture. Example: <?imcms:menu no='3'?> |
||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||
![]() |
![]() |
![]() |
![]() |
[Help for the whole system | imScript manual | All documentation]
Suggestions or comments? Please send us a mail: info@imcode.com