Thank you for this suggestion. Will think about that. What exactly is IfEval? Is it within If-snippet or is it a separate one?
@smooth-graphics: please add in documentation that is If snippet installed is needed for this line:
<meta name="author" content="[[If? &subject=`[[*publishedby]]` &operator=`>` &operand=`0` &then=`[[*publishedby]]` &else=`[[*createdby]]`]]" />
I prefer the IfEval snippet is more flexible and easy to use,
<meta name="author" content="[[!ifEval? &input=`[[*publishedby]]>=0` &contentTrue=`[[*publishedby:userinfo=`fullname`]]` &contentFalse=`[[*createdby:userinfo=`fullname`]]`]]" />
I used the IfEval for my <title> tag:
<title>[[!ifEval? &input=`"[[*longtitle]]"!=""` &contentTrue=`[[*longtitle]]` &contentFalse=`[[*pagetitle]]`]] | [[++site_name]]</title>
http://modx.com/extras/package/ifeval
Ah okay. Than have to think about it. Fact is, If is a popular snippet most people have installed. Ifeval isn’t. And I’m providing a popular tpl-framework… but maybe I’ll do it in next release. Thanks for sharing your thoughts!
ifEval is another snippet is more powerful and flexible than If
http://modx.com/extras/package/ifeval
Ifeval won’t do it now. I try to keep it as simple as possible for users and with minimum of packages.
If you’re interested what’s going on for the future, see the roadmap at github: https://github.com/smooth-graphics/modx-boilerplate/issues/milestones
Version 2.0 will be a major release with lots of things changed and revised. It will also feature pro-themes (paid) built on the framework. And it will feature as a package for MODX Revolution.
<meta name="author" content="[[If? &subject=`[[*publishedby]]` &operator=`>` &operand=`0` &then=`[[*publishedby]]` &else=`[[*createdby]]`]]" />
<meta name="author" content="[[If? &subject=`[[*publishedby]]` &operator=`>` &operand=`0` &then=`[[*publishedby:userinfo=`fullname`]]` &else=`[[*createdby:userinfo=`fullname`]]`]]" />
#ExpiresActive On #ExpiresByType image/gif A2592000 #ExpiresByType image/jpeg A2592000 #ExpiresByType image/png A2592000 #BrowserMatch "MSIE" brokenvary=1 #BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1 #BrowserMatch "Opera" !brokenvary #SetEnvIf brokenvary 1 force-no-vary
Part 2 is online!
http://designfromwithin.com/using-the-fantasic-modx-boilerplate-part-2/