Table of contents
No headers

GetStructuredTagsDefinition

Last modified 17:14, 12 Mar 2015
Table of contents
No headers
var structuredTags = nil;
var articleTags = nil;
if(site.idf.version === 'IDF') {
    articleTags = [
        { tag: 'topic-guide', label: xml.text(wiki.localize('MindTouch.IDF.type.topic-guide')) },
        { tag: 'topic-feature', label: xml.text(wiki.localize('MindTouch.IDF.type.topic-feature')) },
        { tag: 'topic-methodology', label: xml.text(wiki.localize('MindTouch.IDF.type.topic-methodology')) },
        { tag: 'topic-technology', label: xml.text(wiki.localize('MindTouch.IDF.type.topic-technology')) },
        { tag: 'task-tutorial-beginner', label: xml.text(wiki.localize('MindTouch.IDF.type.task-tutorial-beginner')) },
        { tag: 'task-tutorial-intermediate', label: xml.text(wiki.localize('MindTouch.IDF.type.task-tutorial-intermediate')) },
        { tag: 'task-tutorial-advanced', label: xml.text(wiki.localize('MindTouch.IDF.type.task-tutorial-advanced')) },
        { tag: 'task-troubleshooting', label: xml.text(wiki.localize('MindTouch.IDF.type.task-troubleshooting')) },
        { tag: 'reference-feature', label: xml.text(wiki.localize('MindTouch.IDF.type.reference-feature')) },
        { tag: 'reference-sample', label: xml.text(wiki.localize('MindTouch.IDF.type.reference-sample')) }
    ];
} else if(site.idf.version === 'IDF3') {
    articleTags = [
        { tag: 'topic-portfolio', label: xml.text(wiki.localize('MindTouch.IDF3.type.topic-portfolio')) },
        { tag: 'topic-category', label: xml.text(wiki.localize('MindTouch.IDF3.type.topic-category')) },
        { tag: 'topic-guide', label: xml.text(wiki.localize('MindTouch.IDF3.type.topic-guide')) },
        { tag: 'topic', label: xml.text(wiki.localize('MindTouch.IDF3.type.topic')) },
        { tag: 'howto', label: xml.text(wiki.localize('MindTouch.IDF3.type.how-to')) },
        { tag: 'reference', label: xml.text(wiki.localize('MindTouch.IDF3.type.reference')) }
    ];
} else {
     articleTags = [
         { tag: 'topic-category', label: xml.text(wiki.localize('MindTouch.IDF2.type.topic-category')) },
         { tag: 'topic-guide', label: xml.text(wiki.localize('MindTouch.IDF2.type.topic-guide')) },
         { tag: 'topic', label: xml.text(wiki.localize('MindTouch.IDF2.type.topic')) },
         { tag: 'howto', label: xml.text(wiki.localize('MindTouch.IDF2.type.how-to')) },
         { tag: 'reference', label: xml.text(wiki.localize('MindTouch.IDF2.type.reference')) }
     ];
 }
structuredTags = [
    {
        label: xml.text(wiki.localize('Page.LiveTags.label.article')),
        prefix: 'article',
        tags: articleTags
    },
    {
        label: xml.text(wiki.localize('Page.LiveTags.label.stage')),
        prefix: 'stage',
        tags: [
            { tag:'stub', label: xml.text(wiki.localize('MindTouch.IDF.stage.stub')) },
            { tag:'draft', label: xml.text(wiki.localize('MindTouch.IDF.stage.draft')) },
            { tag:'review', label: xml.text(wiki.localize('MindTouch.IDF.stage.review')) },
            { tag:'final', label: xml.text(wiki.localize('MindTouch.IDF.stage.final')) },
            { tag:'outdated', label: xml.text(wiki.localize('MindTouch.IDF.stage.outdated')) },
            { tag:'obsolete', label: xml.text(wiki.localize('MindTouch.IDF.stage.obsolete')) }
        ]
    }
];
export = structuredTags;
Page statistics
148 view(s) and 10 edit(s)

Tags

This page has no custom tags.
This page has no classifications.

Comments

You must to post a comment.

Attachments