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

XF 1.3 How can I add a hook to a custom page?

rhodes

Active member
#1
Hello,

I have a custom page /community/mycustompage with some informations for my users. Sometimes I would like to show an additional widget on this page.

My idea was to add a custom hook for this page and to show my widget only on pages with this hook. However, there is no possibility to define a custom template within the page settings.

What is the xf way to define a custom template for a single page? Do I have to add the template via PHP callback function or is there an easier way?

Thank you for any hint,

regards, rhodes
 

Brogan

XenForo moderator
Staff member
#2
If you are using the widget framework you may be able to do it using the node id.

You would need to ask in the add-on thread if that is possible.