Was this page helpful?

Wiki.GetTag

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    wiki.GetTag(tag : str) : map

    Get specified tag.

    Usage Restrictions

    9.02 or later.

    Parameters

    Name Type Description
    tag any tag name

    Result

    Tag object if found, otherwise nil.

    Samples

      Output

    Get the tag object:

    {{ wiki.gettag("foo") }} 
    { definition : nil, name : "foo", pages : "local://8be0fa3289404f99a6b6f218cc6cbaba/deki/$tagged", prefix : "", type : "text", value : "foo" }

    Build a list of titles of tagged pages:

    <ul>;
    foreach (var p in wiki.gettag("foo").pages) {
    <li>p.title</>;
    }
    </ul>;
    • Wiki.GetTag
    • User:arnec
    • Jan2010
    • User:sdether

     

     

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by