|
The Documentation Site
© Metadot Corporation |
Returns the title of the current page
Example usage:
<title>{{site.name}} - {{page.title}}</title>
Html output:
<title>Wiki - Home</title>
Returns the meta description of the current page
Example usage:
<meta name="Description" content="{{page.meta_description}}"/>
Html output:
<meta name="Description" content="Wiki machine is a Metadot wiki software"/>returns the meta keywords of the page
Example usage:
<meta name="Keywords" content="{{page.meta_keyword}}"/>Html output:
<meta name="Keywords" content="wiki, software, machine, Metadot"/>returns the level of the page
Example usage:
{% if page.level_deep >= 2 %}Return true if the page has sub-pages.
Example usage:
{% if page.has_local_nav %}...{% endif %}
Return true if the home page has sub-pages.
Example usage:
{% if page.has_global_nav %}...{% endif %}
Example usage:
{{page.local_nav}}
Html output:
<ul class='navigation_menu'>
<li class='first'><a href='/sample-page/first_page'>first page</a></li>
<li class='current'><a href='/sample-page/second'>second</a></li>
<li><a href='/sample-page/third'>third</a></li>
<li class='last'><a href='/sample-page/help>help</a></li>
</ul>
the same as local_nav, but returns 4 levels deep tree of sub-pages
the same as local_nav, but returns 5 levels deep tree of sub-pages
the same as local_nav, but returns unlimited levels deep tree of sub-pages
returns list of links to all first level pages
Example usage:
{{page.global_nav}}
Output html:
<ul class='navigation_menu'>
<li class='first'><a href='/sample-page/'>Home</a></li>
<li class='current'><a href='/sample-page/second'>second</a></li>
<li><a href='/sample-page/third'>third</a></li>
<li class='last'><a href='/sample-page/help>help</a></li>
</ul>
similar to global_nav, but the sub-pages of all pages from the global navigation are displayed as dynamic drop-downs, when user roll-over a menu item. This is done by using mm_menu -a third party javasript library. In order to properly setup that dynamic menu, you have initialize some of its attributes. This can be done in directly in the a theme layout or as theme asset, which is included in a theme layout as javascript asset. Here is an example of such initialization:
mm_menu_label="root";
mm_menu_width=200;
mm_menu_height=24;
mm_menu_font="Arial, Helvetica, sans-serif";
mm_menu_fontsize='12';
mm_menu_fontcolor="#ffffff";
mm_menu_fontcolorhilite="#ffffff";
mm_menu_itembgcolor="#000000";
mm_menu_hilitebgcolor="#AD1039";
mm_menu_itemhalign="left";
mm_menu_itemvalign="middle";
mm_menu_itempadding=0;
mm_menu_itemspacing=0;
mm_menu_hidetimeout=1000;
mm_menu_submenuxoffset=0;
mm_menu_submenuyoffset=0;
mm_menu_submenurelativetoitem=true;
mm_menu_bgopaque=true;
mm_menu_vertical=true;
mm_menu_itemindent=0;
mm_menu_fontWeight="normal";
mm_menu_hideOnMouseOut=true;
mm_menu_bgColor='#000000';
mm_menu_menuBorder=0;
mm_menu_menuLiteBgColor='#000000';
mm_menu_menuBorderBgColor='#000000';
mm_menu_x= 0;
mm_menu_y= 30;
same as global_nav, but without the link to the home page
returns table of links to all sub pages of current page. All links reside in one table row.
Example usage:
{{page.local_nav_as_table_horizontal }}
Html output:
<table class='navigation_menu' cellpadding=0 cellspacing=0>
<tr><td class='first'><a id='current' href='/'>Home</a></td>
<td ><a href='/sample-page'>Sample Page</a></td>
<td ><a href='/marketing-materials'>Marketing Materials</a></td>
<td ><a href='/faqs'>FAQs</a></td>
<td ><a href='/about-us'>About Us</a></td>
<td class='last'><a href='/support'>Support</a></td>
</tr></table>
returns table of links to all sub pages of current page. Each links resides in separate table row.
Example usage:
{{page.local_nav_as_table_vertical}}
Html output:
<table class='navigation_menu' cellpadding=0 cellspacing=0>
returns html fragment containing path from the home to the current page. Will be empty if current page is the home page
Example usage:
{{page.breadcrumb}}
Html output:
<a class='first' href='/'>Home</a>
return the login menu
Example usage:
{{page.login_menu}}
Html output:
Welcome, <span class="welcome-user">John Smith</span> | <a href='/__metadot__/tech/feedback?redirect=/sample-page/another-page'>send feedback</a> | <a href='/__metadot__/tech/manage'>manage</a> | <a href='/__metadot__/me'>profile</a> | <a href='/__metadot__/login/logout'>logout</a>
returns url to the current page
Example usage:
{{page.url}}
Html output:
/sample-page/another-pagereturns html fragment with the linked image which points to the rss feed of the current page
Example usage:
{{page.rss}}
Html output:
<a href='/sample-page/another-page.rss' target='_blank' style='border:0'><img src='/__metadot__/images/rss.png' border=0 /></a>
returns the url of the rss feed of the current page
Example usage:
{{page.rss_url}}
Html output:
/sample-page/another-page.rss
Return true if the page is in edit mode.
Example usage:
{% if page.edit_mode %}...{% endif %}
Return true if:
This function is useful for example in case we need to hide empty gizmo areas.
Example usage:
{% if page.edit_mode_or_has_local_nav_or_has_gizmos_in_area_2 %}...{% endif %}
Return true if the page is in edit more or there is gizmos in area 1 - 7. This function is useful for example in case we need to hide empty gizmo areas.
Example usage:
{% if page.edit_mode_or_has_gizmos_in_area_2 %}...{% endif %}Return true if the page has gizmos in area 1 - 7. This function is useful for example in case we need to hide empty gizmo areas.
Example usage:
{% if page.has_gizmos_in_area_2 %}...{% endif %}generates all needed javascript and css tags. Works the same way as the function "js_and_css ".
Example usage:
<head>
...
{{page.js_and_css}}
...
</head>
returns a dynamic (javascript based) tree of all pages, which looks like folders tree
Example usage:
{{page.file_explorer_navigation}}
returns a link 'send this page to a friend', by clicking on which a popup window will open with form to be filled and send to an email with a link to the current page.
Example usage:
{{page.send_this_page_to_a_friend}}
Return true if the page is the home page.
Example usage:
{% if page.is_home_page %}...{% endif %}Return true if the page is not the home page.
Example usage:
{% if page.is_not_home_page %}...{% endif %}