Another conditional syntax question or parnetids like
<IF {CATID} is 1><a href="1.php">One</a><OTHERWISE IF {CATID} is 2><a href="2.php">Two</a><OTHERWISE IF {CATID} is 3 OR {CATPARENTIDS} LIKE '%3%'><a href="3.php">Third</a><OTHERWISE><a href="4.php">Fourth</a></IF>
This thread is closed, so you cannot post a reply.
Comments on Another conditional syntax question
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
I can't get the parentids to work in the below conditional on the "displaylinks" template. I've tried "{CATPARENTIDS}" and just "parentids".
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Template conditionals have nothing to do with MySQL, so don't type MySQL queries in them. If you're trying to find whether a category is beneath category number three, use {CATISBENEATH[3]}.
Forum Regular
Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 57
Total Comments: 185
perfectomundo!