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

XF 1.1 show Notice in Forum-view, but not in thread-view?

Discussion in 'XenForo Questions and Support' started by erich37, Dec 11, 2011.

  1. erich37

    erich37 Well-Known Member

    just wondering if it is possible to show a "Notice" in Forum-view, but not to show that specific Notice in Thread-view ?

    Appreciate your help!
     
  2. RobParker

    RobParker Well-Known Member

    I think you can just specify the template as one of the criteria to do that.

    Brogan will be along shortly to explain in more detail ;-)
     
  3. Brogan

    Brogan XenForo Moderator Staff Member

    Select the node from the list at the top, enter forum_view in the content template.
     
    Valter and erich37 like this.
  4. Harfynn

    Harfynn Member

    Tried that and for some reason, even if I select only 1 specific node, it removes the notice from every node and page in the entire forum. Isn't there a simple solution to remove notices from a specific page? or what about the reverse and have notices on the main forum page and nowhere else?
     
  5. Brogan

    Brogan XenForo Moderator Staff Member

    Set Controller and Action is: field to XenForo_ControllerPublic_Index
     
  6. Harfynn

    Harfynn Member

    Thanks. Unfortunately, it doesn't work for us. Perhaps I missed something, but I think I did exactly as you suggest. If I set it the way you suggest, the notice disappears completly from every forum section, even the main home page. It has the same effect as if I had unchecked "notice is active" from the control panel.

    Screen Shot 2013-05-19 at 6.38.12 PM.png

    But I appreciate you trying to provide a solution.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    Actually, it's easier to just set Content Template is to forum_list.

    notice.PNG
     
  8. Harfynn

    Harfynn Member

    I did that from your original post #3 and again, it removes the notice entirely and is nowhere to be seen on the entire forum. It removes it from the main forum page as well, which is where I'd like it to show up. This has the same effect as if I had unchecked "notice is active" from the control panel, just like setting the Controller and Action is as you suggested as an alternative.

    I really appreciate the effort. I think we'll have to find another way to do it. Maybe a css template change or something of the kind. It's mind boggling that something which appears so simple, just doesn't work.
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Your criteria aren't correct then.

    I tested it on my local and it works fine.
     
  10. Harfynn

    Harfynn Member

    Update: we got it to work.
    Apparently it was an issue with our skin templates that were modified. We reverted the templates and the problem was resolved with your solution.

    THANK YOU.
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    Having modified templates shouldn't be an issue, unless they were marked as outdated after an upgrade.

    If you have reverted them, it should be fine to edit them again to add your customisations.
     

Share This Page