tag:articles
Returns a collection of articles related to the given
tag. Please note that this tag is performance wise very
expensive and should not be used without some kind of caching
around it. Either by using
<util:cache/>
or setting the HTTP
header Cache-Control: s-maxage
<tag:articles id="taggedArticles" includeArticleTypes="blog" tagName="<%= tagName %>"/> <logic:iterate id="taggedArticle" name="taggedArticles" type="neo.xredsys.presentation.PresentationArticle"> <util:valueof param="taggedArticle.url"/> </logic:iterate>
Syntax
<tag:articles authorId="..."? id="..." includeArticleTypes="..."? max="..."? offset="..."? operator="..."? sectionId="..."? sort="..."? tagId="..."? tagName="..."?/>
Attributes
id
, mandatory, no runtime expressionsThe name of the scripting variable.
tagName
The name of the tag to get the articles from. May be a list of comma separated names.
tagId
The ID of the tag to get the articles from. May be a list of comma separated IDs.
authorId
The ID of the author to get the articles from.
sectionId
The section id of the articles. May be a list of comma separated IDs.
includeArticleTypes
ArticleTypes. Collection of Strings or comma separated.
max
How many articles to list. Default is 50.
offset
The start point for a range of results for the query.
sort
The list of articles returned can be sorted ascending or descending on the date the tag was set on the article. Valid values are: date (default) or -date.
operator
This attribute specified which logic to apply while searching with tag IDs. Valid values are:
or
(default),and
.