XF 2.2 Conditional targeting help pages


Well-known member
I want to show something in a template on a custom help page I made. I don't want it showing on other help pages.

so using "$template == 'help_page'" won't work for me. I just want to target the specific help page I created.

Is there a something similar to "$forum.node_id == x" but for help pages? Or even a way to target the title of the page?
Does the page have a unique contentKey or containerKey?
Dump the vars to check: {{ dump(vars()) }}

If so you can use one of those.

Failing that, you can use $xf.uri .
Unfortunately the contentKey and containerKey are null.

Would the templateName or pageSelected be of any use?

Ended up using the $xf.uri anyways
Last edited:
Top Bottom