Search
Thursday, November 21, 2024
User manualsEasyDNNnews

EasyDNNnews User's manual

Expression tokens

Previous Article Token list
Next Article Querystring tokens

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]

 

Previous Article Token list
Next Article Querystring tokens
Print
Last update: 24.06.2021 / Rate this article:
No rating

Table Of Contents

Categories

Copyright 2024 by EasyDNNsolutions Terms Of Use Privacy Statement