Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

Created nested data-row structure like sitetree.


Go to End


2 Posts   956 Views

Avatar
Schippie

Community Member, 38 Posts

23 October 2013 at 10:29pm

Edited: 23/10/2013 10:30pm

I have a question, not sure if there is an easy answer to it but i want to try and create a cms panel that would have a similar structure to the sitetree but for a list of companies and sub-companies :

- Main company 1

  • Sub Company 1
  • Sub Company 2

- Main company 2
  • Sub Company 1
  • Sub Company 2

etc.

Now my question is is there an easy way to achieve such a structure?

Avatar
Schippie

Community Member, 38 Posts

14 November 2013 at 10:31pm

Well got a little further implementing the dataExtension with the class. But my next problem is trying to figure out how i get leftandmain to render the treelist through the getSiteTreeFor() I see it gets called by a URL that is on the html element but thats as far as i have gotten so far.