XF 2.0 Node/Thread data in PAGE_CONTAINER?

Siropu

Well-known member
Is there a way to get node/thread data in PAGE_CONTAINER when viewing a node or a thread?
 
Slightly different in XF2 but certainly on the right track.
Is there a way to get node/thread data in PAGE_CONTAINER when viewing a node or a thread?
You can set "page" options in your content template which makes those values available in your container template, e.g. add to forum_view
HTML:
<xf:page option="forum" value="{$forum}" />
Use in PAGE_CONTAINER:
HTML:
{{ dump($forum.node_id) }}
 
Back
Top Bottom