Was this page helpful?

Tag.Type

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Result
    3. 3. Samples
    tags.Type: str
    

    Get the type of a tag.

    Usage Restrictions

    1.9.1 or later

    Result

    The type of the tag.  One of "text", "define" or "date".

    Samples

      Output

    To get the type of the first tag on the page:

    {{ if(#page.tags) map.values(page.tags)[0].type; else "no tags on page"; }} 

     

    text

     

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

    Copyright © 2011 MindTouch, Inc. Powered by