
nigelparry.net
User
Aug 3, 2009, 4:58 PM
Post #1 of 6
(2795 views)
Shortcut
|
|
Using Category Number to trigger a templateIf
|
Can't Post
|
|
On one site, I have a Parent Category and several Subcategories, all published from the same Publishing Rule, using the "publish multiple index files including subcategories" option, using the same articleLists template. I am trying to get Subcategory names to show ONLY on the Parent Category Index page, not on the Subcategory Index pages where they are redundant. The Parent Category Number is 12 yet neither of these options listed below works. Have I got the Placeholder, $categorynums$, wrong? That was the Placeholder that turned up producing the number 12 when I added the "Show All Placeholders" command to the template:
<!-- templateIf: $categorynums$ eq "12" -->Insert Content Here<!-- /templateIf --> <!-- templateIf: $categorynums$ == "12" -->Insert Content Here<!-- /templateIf --> _____________________ For more information about Nigel Parry and nigelparry.net websites please see http://nigelparry.net nigelparry.net: award-winning communications solutions for clients with something to say Website & print design Internet, public relations & media consulting
|