tag:themeTag
Will create both an scripting variable and a page scoped bean of the Variable-class. You must use one of the following attributes: name or articleID OR tagId/tagName.
If article is given it returns the last or first child tag in the tree related to article. for example. Type is last and an article is tagged with: "dog > big dogs > Greyhound". It returns the "Greyhound" tag. Type is first and an article is tagged with: "dog > big dogs > Greyhound". It returns the "dog" tag.
If tag is given it returns the FIRST parent tag in the tree. if we take the example above. and we give the "Greyhound" tagName it returns the "Dog" tag.
Syntax
<tag:themeTag articleId="..."? id="..." name="..."? tagId="..."? tagName="..."? toScope="..."? type="..."?/>
Attributes
id
, mandatory, no runtime expressionsName of the scripting variable.
name
The name of the bean to specify the article to get the theme tag from. This can be a Tag, PresentationArticle or Article object.
tagId
The id of the tag to get the theme tag from.
tagName
The name of the tag to get the theme tag from.
articleId
The id of the article to get the theme tag from.
type
First or last theme tag. Options: "first"(default), "last"
toScope
The scope where the variable will be saved in. Default "page". Options: "page", "request", "session" and "application".