Peace
Active member
I have a few custom pages that use PAGE_CONTAINER.
I need to add some custom meta information in these pages (specifically og:image and og:title for Facebook). Unfortunately, I can't insert this stuff into page template because that's all within the <body> tags, and the meta information needs to be in the <header> tags.
This meta information cannot show for other pages that use PAGE_CONTAINER, only these specific ones.
I tried adding the meta information in PAGE_CONTAINER between some conditionals like:
<xen:if is="in_array({$contentTemplate}, array('mypage1', 'mypage2'))">
However, this doesn't work because the templates don't even load until after the header, so it can't detect which template it's in.
Is there a simple way to modify the header information in some specific templates?
Thanks!
I need to add some custom meta information in these pages (specifically og:image and og:title for Facebook). Unfortunately, I can't insert this stuff into page template because that's all within the <body> tags, and the meta information needs to be in the <header> tags.
This meta information cannot show for other pages that use PAGE_CONTAINER, only these specific ones.
I tried adding the meta information in PAGE_CONTAINER between some conditionals like:
<xen:if is="in_array({$contentTemplate}, array('mypage1', 'mypage2'))">
However, this doesn't work because the templates don't even load until after the header, so it can't detect which template it's in.
Is there a simple way to modify the header information in some specific templates?
Thanks!