N nanto Member Jan 4, 2018 #1 Hello This does not work in the PAGE_CONTAINER template. HTML: {{ date($thread.post_date) }} Is there a way to do that?
Hello This does not work in the PAGE_CONTAINER template. HTML: {{ date($thread.post_date) }} Is there a way to do that?
P Paul R Active member Jan 4, 2018 #2 The value of $thread does not exist on PAGE_CONTAINER template, so you can not use it
N nanto Member Jan 4, 2018 #3 This is a pity. My intention is to get $ thread.post_date or $ thread.FirstPost.post_date in the head area of the html output. HTML: <head> ... {{ date($thread.post_date) }} ... </head> <body data-template="{$template}"> Is there another way to achieve that?
This is a pity. My intention is to get $ thread.post_date or $ thread.FirstPost.post_date in the head area of the html output. HTML: <head> ... {{ date($thread.post_date) }} ... </head> <body data-template="{$template}"> Is there another way to achieve that?
P Paul B XenForo moderator Staff member Jan 4, 2018 #4 This was written for XF1 but you should get the idea: https://xenforo.com/community/resou...-templates.5034/updates#resource-update-18416
This was written for XF1 but you should get the idea: https://xenforo.com/community/resou...-templates.5034/updates#resource-update-18416
P Paul R Active member Jan 4, 2018 #5 View template metadata_macros and template thread_view You will get what you need here
CyberAP Well-known member Jan 4, 2018 #7 Use <xf:page name="someVar" /> tag in thread_view template, it's an analogue of <xen:container var="someVar" /> from XF1.
Use <xf:page name="someVar" /> tag in thread_view template, it's an analogue of <xen:container var="someVar" /> from XF1.