Hi there,
This is probably me being a bit thick (wouldn’t be the 1st time), but I need to test the logic of what I’m trying to do.
I just write a simple condition that will do the following >
1. Open a weblog
2. If the category id is = x then do then do this
3. if:else the category id = y, then do that.
The examples that i’ve seen on this site always call the category id in the weblog tag
eg:
{exp:weblog:entries weblog="news" dynamic="off" limit="3" orderby="date" category="22"}What I want to do is run a conditional to do stuff based on what the category id is.
I’ve included some quasi-code here for reference…
{exp:weblog:entries weblog="news" dynamic="off" limit="3" orderby="date"}
{if category="22"}
foo
{else:if category="23"}
bar
{/if}I can’t seem to get this to work, and it’s probably either due to me not fully getting my head around categories, or my syntax is wrong.
Cheers