Hi,
I’m doing some conditionals on a search results page, and I think either there are limitations I have not found in the docs, or I am doing something wrong.
Example one:
What does NOT work:
{if:elseif weblog_short_name="myname1"}This returns a totally blank page, indicating that the syntax has caused an error.
What *does* work is:
{if:elseif weblog_short_name=="myname1"}My need is to say, if the weblog short name contains a word, then act this way. I have 14 weblogs that have the word “news” in them, and want to have a rule for all of them without listing them out.
So, this has not worked.
My other attempt to solve the problem also doesn’t seem to be working…probably the same limitation:
{if:elseif weblog_short_name="myname1|myname2|myname3|myname4"}Is my syntax incorrect, or is there a limitation that you cannot do “contains” matching with an elseif statment?
Thanks
Phoebe