PDA

View Full Version : Category / Section Variables?


OcR Envy
01-06-2010, 01:48 PM
Looking to do some if statements for categories and sections in the navbar template.

Wondering if $sectionid and $categoryid would work? Don't ask me where I got them I just pulled them out of thin air using $forumid from 3.x ;)

--------------- Added 1262806170 at 1262806170 ---------------

Well I've tried {$sectionid} and {$categoryid} neither worked.

Anyone have any suggestions at all?

alfanexus
04-13-2010, 11:03 AM
I have also tried $sectionid with no result. Did you find a solution on how to get the section id ?

Lynne
04-13-2010, 02:37 PM
You'll need to look at the code and also the tables. Very often they use the same variable name as the field in the table. You also need to see if the variable is even available for use in certain templates - like header/navbar/footer are rendered at the beginning of the pages, so most page variables aren't available yet.