{col}
Smarty site collection items list plugin. Plugin outputs list of site collection item titles.
Attributes:
Attribute Name | Type | Required | Default | Description |
---|---|---|---|---|
var | string | No | n/a | Template variable name containing associative array of collections (plugin does not return list html if var and name are specified) |
name | string | No | n/a | Menu item name to which will be binded result of this plugin (plugin does not return list html if var and name are specified) |
id | string | No | n/a | ID attribute assigned to list <ul> tag |
class | string | No | sf-menu | Class attribute assigned to list <ul> tag |
class_current | string | No | current | Class attribute assigned to list current item <li> tag |
uc | integer | No | 0 | 1 - convert menu item title into upper case |
seq | integer | No | n/a | Unique menu item ID to start tree from |
depth | integer | No | 10 | Menu hierarchy level depth |
meta | string | No | n/a |
Type of metadata to be assigned to attribute "title" of <li> tag. Possible values:
|
Sample 1. Alone collection:
{col}
Above will output (www.samplesite.com - will be replaced with your actual site URL):
<ul>
<li><a href="http://www.samplesite.com/catalog/electronic">Electronic</a></li>
<li><a href="http://www.samplesite.com/catalog/industry">Industry</a></li>
<li><a href="http://www.samplesite.com/catalog/printing">Printing</a></li>
<li><a href="http://www.samplesite.com/catalog/typesetting">Typesetting</a></li>
</ul>
Sample 2. Sample collection connected to menu item "Products" via name "catalog":
{col var="col" name="catalog"}
{mnu depth="2" collection="col"}
Above will output (www.samplesite.com - will be replaced with your actual site URL):
<ul>
<li><a href="http://www.samplesite.com/eng/about-us">About us</a></li>
<li><a href="http://www.samplesite.com/eng/news/actual">News</a></li>
<li><a href="http://www.samplesite.com/eng/activity">Activity</a></li>
<li>
<a href="http://www.samplesite.com/eng/products">Products</a>
<ul>
<li><a href="http://www.samplesite.com/catalog/electronic">Electronic</a></li>
<li><a href="http://www.samplesite.com/catalog/industry">Industry</a></li>
<li><a href="http://www.samplesite.com/catalog/printing">Printing</a></li>
<li><a href="http://www.samplesite.com/catalog/typesetting">Typesetting</a></li>
</ul>
</li>
<li><a href="http://www.samplesite.com/eng/partners">Partners</a></li>
<li><a href="http://www.samplesite.com/eng/contacts">Contacts</a></li>
<li><a href="http://www.samplesite.com/cms/srv/admin">CMS</a></li>
<li><a href="#login">Login</a></li>
<li><a href="#logout">Logout</a></li>
</ul>