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

actionIndex() - in forum and category view

Discussion in 'XenForo Development Discussions' started by SirWill, May 24, 2016.

  1. SirWill

    SirWill Member


    in the category view actionIndex() gives the nodeParents but in the forum view it doesn't.
    Is there any other way to get the same result in the forum view?

    Edit: Seems to be only available in forum_list. How can I get the nodeParents in categories or forums?
    Last edited: May 24, 2016
  2. Lawrence

    Lawrence Well-Known Member

    forum view:

    category view:
  3. SirWill

    SirWill Member

    Hm, how do I get $response in XenForo_ControllerPublic_Forum ?
  4. Lawrence

    Lawrence Well-Known Member

    $response = parent::actionIndex();
    Steve F likes this.
  5. SirWill

    SirWill Member

    That's what I mean. In a forum node it will throw Undefined property: XenForo_ControllerResponse_Reroute::$params.
  6. SirWill

    SirWill Member

    No clue about that?
  7. Nobita.Kun

    Nobita.Kun Well-Known Member

    I think you should extends: actionForum instead of actionIndex?
    SirWill likes this.
  8. SirWill

    SirWill Member

    That looks correct, thanks.

Share This Page