WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Another conditional syntax question
or parnetids like

Version: 4.0.16
printPrint


Another conditional syntax question
mrowton
Forum Regular
Avatar

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 59
Total Posts: 189

Last Blog:

Posted 08/12/07 - 08:08 AM:
quote post
#1
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="http://www.webmastersite.net/forums/1.php">One</a>

<OTHERWISE IF {CATID} is 2><a href="http://www.webmastersite.net/forums/2.php">Two</a>

<OTHERWISE IF {CATID} is 3 OR {CATPARENTIDS} LIKE '%3%'><a href="http://www.webmastersite.net/forums/3.php">Third</a>

<OTHERWISE>

<a href="http://www.webmastersite.net/forums/4.php">Fourth</a>

</IF>

http://www.packetsource.com/
Directory of Security Papers
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 08/12/07 - 07:58 PM:
quote post
#2
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]}.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
mrowton
Forum Regular
Avatar

Usergroup: Customer
Joined: Feb 19, 2004
Location: Michigan
Total Topics: 59
Total Posts: 189

Last Blog:

Posted 08/13/07 - 04:45 PM:
quote post
#3
perfectomundo!

http://www.packetsource.com/
Directory of Security Papers
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.