imScript Manual


Menu tags

« Back  |  Next »
Introduction
General information
Text field
Image field
Page information
Links & Menu
Include
Data tags
User data
Date tags
Velocity
API samples
JSP
imScript tags list
RSS feed
<?imcms:menu?>
The open tag for menu – MANDATORY

Attributes:

  • no
    indicates the number of current menu section
  • label
    indicates the name of current menu section. Text value in this attribute can describe the menu content and enable on page only in administration mode
  • mode
    The menu content with “write” value in mode attribute is visible only in administration mode, and accessible to edit. Edit the content in tag with same number value with mode=”read” or in normal tag (without mode attribute)
  • template
    indicates the template name which will be in use by document. The file type index ( *. Html) will not be printed
  • indexstart
    indicates standard start value for links in menu. Standard value is “0” The value “1” gives the number 1 to first link in menu. This rule always remains in spite of chosen numbering order.
  • indexstep
    indicates value for step size in numbering. The standard value is "1"

<?/imcms:menu?>
The close tag for menu – MANDATORY

<?imcms:menuitem?> and <?/imcms:menuitem?>
Use to apply different look for menu items ( links ). It is possible to use several times inside menu. The valid location for those tags is only between menu or menuloop tags.

Variables:

  • #childMetaid# - Contains meta id of child document
  • #childMetaheadline# - Contains heading (in menu) for current child document
  • #childMetaImage# - Contains image (in menu) for current child document
  • #childCreatedDate# - Contains date when current child document was created
  • #childModifiedDate# - Contains date when current child document was changed
  • #menuitemdatecreated# - Contains date when current menu item (link) was created
  • #menuitemdatemodified# - Contains date when current menu item (link) was changed
  • #menuitemheadline# - Contains heading (in menu) for current menu item (link)
  • #menuitemtext# - Contains text (in menu) for current menu item (link)
  • #menuitemindex# - Contains the menu link's order number (menu index) with initial value “0” as standard and is counted up with step about 1 as standard. The initial value can be changed through the menu attribute indexstart and step size can be changed with the menu attribute indexstep.
  • #menuitemtreesortkey# - Contains the menu link's sort order in structure, for example: 1.2.3 (maximum 12 chars)
  • #menuitemimage# - Contains image (in menu) for current menu item (link)
  • #menuitemimageurl# - Contains only URL (without <img…> tag) to image for current menu item (link)
  • #menuitemlink# - Open creation of HTML link to document and place control checkbox, document status icon (also link to page info window) and special red mark (link to document administration window).
  • #/menuitemlink# - Close creation of Html link to document
  • #menuitemlinkonly# - Same action as in # menuitemlink # but without control checkbox, document status icon (also link to page info window) and special red mark (link to document administration window)
  • #/menuitemlinkonly# - Close creation of Html link to document
  • #menuitemmetaid# - Contains Meta ID for current menu item (link)

<?imcms:menuloop?> and <?/imcms:menuloop?>
Use to control menu code repeated parts.

<?imcms:menuitemhide?> and <?/imcms:menuitemhide?>
Use to hide parts of the code which can not be enabled if the menu contains empty menu items. Placed inside menu or menuloop tags.

[Help for the whole system | imScript manual | All documentation]

Suggestions or comments? Please send us a mail: info@imcode.com