Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Forum Tree-like Navigation

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 1509 Views
  • qhoxie
    Avatar
    Google Summer of Code Hacker
    39 Posts

    Forum Tree-like Navigation Link to this post

    One thing that ive been missing on the forums is tree-like navigation for forums and sub-forums, at least at the top of the page, and maybe at the bottom too

    something along the lines of:

    SilverStripe Forum
    -> Feature Requests
    -> Topic

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Forum Tree-like Navigation Link to this post

    The main thing holding us back here is developer resource. Would you be able to help out with the implementation of this?

  • qhoxie
    Avatar
    Google Summer of Code Hacker
    39 Posts

    Re: Forum Tree-like Navigation Link to this post

    ill see what i can do with it
    i havent played with the forum module much

    does anyone know off the top of their head whether or not <% control Level(x) %> would work for this?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Forum Tree-like Navigation Link to this post

    Kind of. It would be better to get the forum holder with a function like this:

    function GetForumHolder() {
    $obj = $this;
    while($obj && $obj->class != 'ForumHolder') $obj = $obj->Parent();
    return $obj;
    }

    And then use <% control GetForumHolder.Children %>

    1509 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.