Created
January 19, 2011 10:35
-
-
Save anselmh/785985 to your computer and use it in GitHub Desktop.
with If and output filters for blogging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//one - more flexible possibility since it's made with flexible If snippet | |
[[!If? &subject=`[[+introtext]]` &operator=`isnotempty` &then=`[[+introtext]]` &else=`[[+content:strip_tags:ellipsis=`500`]]` ]] | |
//the better one when it comes to performance (thank you Mark-H) | |
[[+introtext:default=`[[+content:strip_tags:ellipsis=`500`]]`]] |
Even better since the If snippet is a bit slow..! Thank you.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about this? :)