Was this page helpful?

Meta.Custom

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    meta.Custom(name: str, content : str) : xml
    

    Add a custom meta tag to the page.

    Usage Restrictions

    1.9.1 or later.

    Requires UNSAFECONTENT permission in 9.2 and later.

    Parameters

    Name Type Description
    name str The meta name.
    content str The custom meta content.

    Result

    The custom data is displayed as part of the page metadata.

    Samples

        Output

    To create the custom meta information in xml format:

    {{meta.custom("Shared Rights", "Bart Allen") }} 

    The change appears in the page's HTML head element:

    <meta name="Shared Rights" content="Bart Allen" />

    Sample custom meta tag that Google uses to confirm ownership

    {{meta.custom("verify-v1", "FAsER%$hgdsgAE@FEQA") }}

    Note: conf code only example, use the conf code provided by google

     

    <meta name="verify-v1" content="FAsER%$hgdsgAE@FEQA"/>
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by