Siropu Well-known member Oct 16, 2017 #1 Is there a way to get node/thread data in PAGE_CONTAINER when viewing a node or a thread?
H HWS Well-known member Oct 16, 2017 #2 xen:container? https://xenforo.com/community/threads/xen-container-var.52656/
Chris D XenForo developer Staff member Oct 16, 2017 #3 HWS said: xen:container? https://xenforo.com/community/threads/xen-container-var.52656/ Click to expand... Slightly different in XF2 but certainly on the right track. Siropu said: Is there a way to get node/thread data in PAGE_CONTAINER when viewing a node or a thread? Click to expand... 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) }}
HWS said: xen:container? https://xenforo.com/community/threads/xen-container-var.52656/ Click to expand... Slightly different in XF2 but certainly on the right track. Siropu said: Is there a way to get node/thread data in PAGE_CONTAINER when viewing a node or a thread? Click to expand... 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) }}