Webmastersite.net
Register Log In

Another conditional syntax question
or parnetids like

Comments on Another conditional syntax question

mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Aug 12, 2007 - 9:08 AM:

I can't get the parentids to work in the below conditional on the "displaylinks" template. I've tried "{CATPARENTIDS}" and just "parentids".

<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>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 12, 2007 - 8:58 PM:

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]}.
mrowton
Forum Regular

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan

Total Topics: 57
Total Comments: 185
mrowton
Posted Aug 13, 2007 - 5:45 PM:

perfectomundo!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.