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

XF 1.3 Make Notices NOT show on external nodes?

Discussion in 'XenForo Questions and Support' started by Okenyon, Sep 1, 2014.

  1. Okenyon

    Okenyon Active Member

    I have external page nodes as in pages that are just HTML away from the forum pages.

    Can I make notices that ONLY show on forum pages as in page with posts etc and not custom pages like landing pages I use templates and nodes for?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What is an example of a custom page?

    Notices won't show on pages which are outside the forum directory/structure.
     
  3. Okenyon

    Okenyon Active Member

  4. Brogan

    Brogan XenForo Moderator Staff Member

    That's a XenForo Page node so if you set the notice to display globally, it will also display there.

    There is no way of excluding specific pages or node types, you would need to limit the notice to e.g. the Forums tab or create multiple notices if you wish to also display it elsewhere.
     
  5. Okenyon

    Okenyon Active Member

    Can I exclude to JUST the forum pages? If so how? Thanks again man.
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes.

    upload_2014-9-2_12-56-57.png
     
    Okenyon likes this.
  7. Okenyon

    Okenyon Active Member

  8. Brogan

    Brogan XenForo Moderator Staff Member

    That's because Page nodes still highlight the Forums tab (in the code).

    As I mentioned above, you will need to create multiple notices and select the specific areas where you want them to display.

    Failing that, you can use CSS to hide the notice from page nodes or edit the templates to stop it rendering at all.
     
  9. Okenyon

    Okenyon Active Member

    @Brogan is there a hook I can include on the HTML of these "external" pages like /welcome which would not include notices?
     

Share This Page