Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2901

phpBB Custom Coding • Re: Making PARENT_ID available to the templates

$
0
0
@Mannix_

Thanks for telling me about the Twig syntax. :)

I'm now using the following and it works exactly as expected...

Code:

{% ifSCRIPT_NAME != 'index' or(SCRIPT_NAME == 'index' and forumrow.FORUM_ID in ['1', '2', '3', '11'])%}
An added bonus of using Twig is the ability to use new lines. :)

Statistics: Posted by Denis — Wed Jan 24, 2024 2:10 pm



Viewing all articles
Browse latest Browse all 2901

Trending Articles