Expression tokens
The expression tokens check values such as category, author etc. in templates.
[*EasyDNNnews:Expression:TokenName:operator:value]
[*EasyDNNnews:EndExpression:TokenName]
operator: =, !=, >, >=, <, <=
value: value to compare
value types:
text: "some text"
number: 123
empty value: ""
note: remove "*" from token examples
Available news expression tokens:
- articleid
- artmid
- userid
- tagid
- tagname
- authorid
- authorname
- authorsecurityrole
- profilegroupid
- categoryid
- categoryname
Examples:
[*EasyDNNnews:Expression:ArticleID:=:150]
This is article 150
[*EasyDNNnews:EndExpression:ArticleID]
[*EasyDNNnews:Expression:CategoryId:=:2]
This is category 2
[*EasyDNNnews:EndExpression:CategoryId]
[*EasyDNNnews:Expression:CategoryName:=:"Blog articles"]
This is category Blog articles
[*EasyDNNnews:EndExpression:CategoryName]
[*EasyDNNnews:Expression:AuthorSecurityRole:=:"Administrator"]
Administrator security role
[*EasyDNNnews:EndExpression:AuthorSecurityRole]