• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 customizing h1 title on PAGE_CONTAINER if thread

localhost8080

Well-known member
#1
Hello,

in thread view, I want to include informations from custom thread fields to the h1 title section.

As I know the h1 is generated at PAGE_CONTAINER - but how can I

1) know if the current page is thread_view

and

2) access $thread values at PAGE_CONTAINER ?

Thank you and best regards + merry christmas.
 

Brogan

XenForo moderator
Staff member
#2
You use a conditional statement to target a particular page - see the link in my signature.

The FAQ in my signature explains how to pass variables to templates.