Menu

Array of Variables, contains Information of Sitemenu


Subvariable Meaning
parent_idobject Idobject identifier of Parent Page
next_idobject Idobject identifier of next Page on the level, empty if none
prev_idobject Idobject identifier of previous Page on the level, empty if first page
page_idobject Idobject identifier of the Page
page_extern_link URL for extern Link of Page (Field Externlink)
page_name
Title of the Page
page_type "child_page" for Pages with Parent
"root_page" - for Pages with no Parents
menu_level Level of Menu (0 - for root, 1,2,3... - next Levels)
page_img URL of Page Image, empty if not defined
childs recursive Array of Childelements

Example:

  1.                 <div id="main_nav_container">
  2.                         <ul id="main_nav_list">
  3.                                 <TMPL_loop __GLOBAL_VARS__ menu>
  4.                                 <li><a <TMPL_if IN_SET(page_idobject,path1_id)>class="main_nav_active_item"<TMPL_else>class="main_nav_item"</TMPL_if>  <TMPL_if page_extern_link>href="<TMPL_var page_extern_link>"<TMPL_else>href="<TMPL_var page_idobject>.html"</TMPL_if>><TMPL_var page_name></a></li>
  5.                                 </TMPL_loop>
  6.                                 <li class="main_lok">&nbsp;</li>
  7.                         </ul>
  8.                 </div>
  9.                 <div class="sub_nav_container">
  10.                         <ul class="sub_nav_list">
  11.                         <TMPL_loop __GLOBAL_VARS__  menu>
  12.                         <TMPL_if IN_SET(page_idobject,path1_id)>
  13.                                 <TMPL_loop __CONTEXT_VARS__ childs>
  14.                                 <li><a <TMPL_if  IN_SET(page_idobject,path2_id)>class="sub_nav_active_item"<TMPL_else>class="sub_nav_item"</TMPL_if> <TMPL_if page_extern_link>href="<TMPL_var page_extern_link>"<TMPL_else>href="<TMPL_var page_idobject>.html"</TMPL_if>><TMPL_var page_name></a></li>
  15.                                 <TMPL_if __LAST__><li class="sub_lok">&nbsp;</li></TMPL_if>
  16.                                 </TMPL_loop>
  17.                         </TMPL_if>
  18.                         </TMPL_loop>
  19.                         </ul>
  20.                 </div>