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

Help with notices page criteria

Discussion in 'XenForo Questions and Support' started by cmeinck, Jul 31, 2012.

  1. cmeinck

    cmeinck Well-Known Member

    I've set up a notice that should appear within a specific forum. If I use 'Page is Within Nodes', it also puts the notice in the sub-forum of the particular node I'm targeting.

    Is there a way to show a notice in a forum node, but not in the subforum node?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Good point, actually, I don't think this is possible.

    Nodes are nested so technically the subforum is a page within the forum node.

    Likewise, if you targeted a category, then the notice would appear in all nodes within that category.

    The only suggestion I can think of is by adding the notice as a template edit, but someone else might have better ideas.
  3. cmeinck

    cmeinck Well-Known Member

    I'm actually using your plugin. ;)
  4. Chris D

    Chris D XenForo Developer Staff Member



    Same deal, unfortunately. The criteria for Notices and my Notifications add-on is the same and works in the same way. As you can have a node within a node within a node etc. then targeting a notice or a notification to a node targets it to its child nodes too.

    I've been thinking about extending the criteria in a future version of my add-on (which would by default extend Notices criteria too) so if I do, I'll make "Apply to selected node only" a criteria :)
  5. cmeinck

    cmeinck Well-Known Member

    Awesome. Just started using these notifications in a variety of ways. Policing announcements, trying to gain Facebook followers and more.
  6. Chris D

    Chris D XenForo Developer Staff Member

    Great, be sure to post in the Notifications add-on Discussion. It's really quite versatile so others who have it love seeing suggestions of how they could use it.

    Also if you review it that'd be awesome :D

    Also, any questions just ask.
  7. HenrikHansen

    HenrikHansen Well-Known Member

    Are you sure? That must be a bug!
  8. HenrikHansen

    HenrikHansen Well-Known Member

    Huuh, maybe, but how come that xf rock widgetframework can target widgets to specific nodes and not sub nodes ?
  9. HenrikHansen

    HenrikHansen Well-Known Member

    Eventually if you want to target information to specific nodes use xf widget framework.
    Position: forum_view
    Expression: $forum['node_id'] == 5 (if your forum is 5)

    I have just tested, the widgets are not shown i subnodes. I know widgets are not the same as notices, but anyway...
  10. Chris D

    Chris D XenForo Developer Staff Member

    The difference is simple.

    Widget Framework is explicitly targeting a specific node ID.

    Notices targets a node and its children - as per the wording "pages within node". Something targeted to a category will display the notice in all pages within that node which would be all forums in that category and all sub forums in those forums.

    You can't compare the functionality because they're two entirely different things.

Share This Page