1. 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?

Discussion in 'XenForo Questions and Support' started by rhodes, Oct 23, 2015.

  1. rhodes

    rhodes Active Member


    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
  2. Brogan

    Brogan XenForo Moderator Staff Member

    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.

Share This Page