|
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:
-
<div id="main_nav_container">
-
-
<TMPL_loop __GLOBAL_VARS__ menu>
-
<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>
-
</TMPL_loop>
-
<li class="main_lok"> </li>
-
</ul>
-
</div>
-
<div class="sub_nav_container">
-
<ul class="sub_nav_list">
-
<TMPL_loop __GLOBAL_VARS__ menu>
-
<TMPL_if IN_SET(page_idobject,path1_id)>
-
<TMPL_loop __CONTEXT_VARS__ childs>
-
<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>
-
<TMPL_if __LAST__><li class="sub_lok"> </li></TMPL_if>
-
</TMPL_loop>
-
</TMPL_if>
-
</TMPL_loop>
-
</ul>
-
</div>
|