Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » ModelAdmin & Hierarchy, possible?

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

Page: 1
Go to End
Author Topic: 468 Views
  • WebInt
    Avatar
    Community Member
    11 Posts

    ModelAdmin & Hierarchy, possible? Link to this post

    Hi,

    I have a query about implementing SiteTree-like hierarchy in ModelAdmin.

    First of all, is it possible? I need to manage my objects, with categories (and an indefinite number of sub categories) in ModelAdmin. Ideally, I'd like basically another SiteTree in another tab, to avoid the clutter of the other pages.

    Cheers.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: ModelAdmin & Hierarchy, possible? Link to this post

    It is possible, I used to have a systen that used the sitetreeasUL functions and created one from data objects. But I replaced it with modeladmin (as it was hacky and tons of code).

    SS3 will be using jstree and it looks very simple to create a tree from a dataobject set...

    This could show the dataobjects found by the search as the root nodes,
    clicking on the icon brings up the normal edit form and clicking on
    the pluss opens up the "child" or relating objects.
    It would need...
    *icon (as you say)
    *function getTreeNodeName
    *a way to indicate relationships not to follow (in other words "sink"
    objects)

    468 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.