Box sections

Box_sections is a module that manages navigation of Vivvo website.

Example

<vte:box module="box_sections">
    <vte:params>
        <vte:param name="id" value="0" />
    </vte:params>
    <vte:template>
        <ul>
            <vte:foreach item = "category" from = "{categories}">
                <vte:if test="{category.view_subcat}">
                    <li>
                        <a href="{category.get_href}">
                            <vte:value select="{category.category_name}" />
                        </a>
                        <vte:if test="{category.subcategories}">
                            <vte:box module="box_sections">
                                <vte:params>
                                    <vte:param name="id" value="{category.id}" />
                                    <vte:param name="prefix" value="" />
                                </vte:params>
                                <vte:template>	
                                    <ul>
                                        <vte:foreach item = "category" from = "{categories}">
                                            <vte:if test="{category.view_subcat}">
                                                <li>
                                                    <a href="{category.get_href}">
                                                        &#8250;<vte:value select="{prefix}" />
                                                        <vte:value select="{category.category_name}" />
                                                    </a>
                                                    <vte:if test="{category.subcategories}">
                                                        <vte:load module="box_sections" id="{category.id}" template_string="{template_string}" prefix="&#8250;{prefix}" />
                                                    </vte:if>
                                                </li>
                                            </vte:if>
                                        </vte:foreach>
                                    </ul>
                                </vte:template>
                            </vte:box>
                        </vte:if>
                    </li>
                </vte:if>
            </vte:foreach>
        </ul>
    </vte:template>
</vte:box>

Box parameters

Parameter name Value Description
prefix string Prefix to pass trough for recursion

Search parameters

Parameter name Value Description
search_ids string comma separated category ids
id integer category id

Assignments:

Parameter name Value Description
categories array each item is an Categories object
prefix string pass trough prefix parameter
id integer pass trough category id parameter
template_string string Box template for recursion
 
devdoc/modules/box_sections.txt · Last modified: 2008/11/12 10:13 by boccio
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki