Difference between revisions of "Liquid Template Variables - linklist"

From Spiffy Stores Knowledge Base

(New page: The liquid template variable ''linklist'' has the following attributes: == <code>linklist.id</code> == Returns the unique internal number of the linklist. This is normally only for inte...)
 
Line 38: Line 38:
  
 
<pre><div id="side-navigation">
 
<pre><div id="side-navigation">
   {{ linklists.side-menu.simple-menu }}
+
   {{ linklists.side-menu.menu-simple }}
 
</div></pre>
 
</div></pre>

Revision as of 15:55, 15 September 2008

The liquid template variable linklist has the following attributes:

linklist.id

Returns the unique internal number of the linklist.

This is normally only for internal usage.

linklist.handle

This is the linklist handle.

linklist.title

Returns the title of this linklist.

linklist.links

Returns a collection of this linklist's links.

linklist.links_count

Returns the number of child links.

linklist.menu

Returns the HTML code for a fully generated tree-structured menu, using drop-down menus.

<div id="navigation">
  {{ linklists.main-menu.menu }}
</div>

This example includes all the code needed to implement a drop down menu.

linklist.menu_simple

Returns the HTML code for a simple tree-structured menu, using nested unordered lists.

<div id="side-navigation">
  {{ linklists.side-menu.menu-simple }}
</div>