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

rhodes

Active member
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
 
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.
 
Top Bottom