Modifiers

  • Lightweight in comparison to the PHx plugin
  • It can also be used for chunks and snippets
  • Flexible
  • Easy to read
  • Delimter free ( ' " ` )
  • Many modifiers
  • Compatible with the PHx plugin
  • It can co-exist with the PHx plugin
[*longtitle:ifempty=[*pagetitle*]*]

[*longtitle:ifempty='[*pagetitle*]'*]

[*longtitle:ifempty="[*pagetitle*]"*]

[*longtitle:ifempty([*pagetitle*])*]

[*longtitle:ifempty('[*pagetitle*]')*]

Case Insensitive

[*template:is(1):then(Top page):else(Sub page)*]

[*template:IS(1):THEN('Top page'):ELSE('Sub page')*]

Multi line

[*id
:is(1)
:then(Top)
:else(Other)
*]

More Examples

[*email:spam_protect*]

[*price:number_format*]

[*content:addBreak*]

[*pagetitle:strip_tags*]

[(site_name:escape)]

{{Chunk:escape}}

[+placeholder:escape+]

[[Snippet:escape?param=1&param2]]

[!$_SERVER['REQUEST_TIME']:dateFormat('Y-m-d H:i:s')!]

[*pict:is_image:tpl('<img src="[+value+]" alt="">')*]

[+image:isNotEmpty
  :then('<img src="[[phpthumb? &input=`[+image+]` &options=`w=300`]]" alt="">')
  :else('[+wf.linktext:substr(0,1)+]')
  +]

[*pub_date:ifEmpty('[*publishedon*]'):dateformat=`%d.%m.%Y`*]

 

In This Section

Suggest an edit to this page.