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

Get a parent node's sub-tabs template.

Discussion in 'XenForo Development Discussions' started by lasertits, Apr 10, 2011.

  1. lasertits

    lasertits Active Member

    I'm trying to figure out a way to do this, hopefully in a way that it is global for pages, or atleast simple enough to implement across dozens of individual pages.

    I have nodes with a custom sub-tabs template, something like this:


    This template is set through a code listener for navigation_tabs. That's all fine and dandy, but if I go down one node, that code listener is no longer triggered, and no sub-tabs are set:


    How would I go about getting, in a node, it's parent node? More specifically, can I get the linksTemplate (sub-tabs template) value from it? (keep in mind, this is set through the code listener, so that code listener has to be triggered somewhere in between) If so, how can I go about doing this?

    Any push in the right direction would be great, thanks!

Share This Page