Box tags

Example

<vte:box module="box_tags">
    <vte:params>
        <vte:param name="search_limit" value="20" />
        <vte:param name="cache" value="1" />
    </vte:params>
    <vte:template>
        <vte:if test="{tag_list}">
            <vte:foreach item = "tag" from = "{tag_list}">
                <vte:if test="{tag.name} != ''">
                    <a style="font-size:{tag.get_fontsize}px;" href="{tag.get_href}"><vte:value select="{tag.name}" /></a>
                </vte:if>
            </vte:foreach>
        </vte:if>
    </vte:template>
</vte:box>

Box parameters

Parameter name Value Description
title string custom title for box, available in template via {TITLE}
box_id string custom html id for box, available in template via {BOX_ID}

Search parameters

Parameter name Value Description
limit integer max number of tags to retrieve
offset integer query offset, 0 based
search_article_id integer filter tags for article
search_starting_with string tags staring with phrase (uses LIKE 'xxx%' SQL statement)
The following parameters were added in Vivvo 4.1.5
search_topic_id string comma separated topic ids (this parameter must be used in conjuction with search_article_id)

Assignments:

Parameter name Value Description
tag_list array each item is an Tags/ArticlesTags object
TITLE string pass trough title parameter
BOX_ID string pass trough box_id parameter
 
devdoc/modules/box_tags.txt · Last modified: 2009/04/28 11:41 by krcko
 
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