XF 1.2 If in category conditional

Brent W

Well-known member
I would like to use a conditional inside forum_view template that will add extra text to the <title> tag if the forum is inside a certain category. Is there a conditional for me here?
 

Brent W

Well-known member
$forum.node_id should do it.
That works but I'd need every id. Is there no parent variable? I have about 20-30 forums under one category and I want them all to have this extra text. I tried just using the category id but it didn't work.
 
Top