Jump to:

23489 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Two questions about the CMS.

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 427 Views
  • Schippie
    Avatar
    Community Member
    32 Posts

    Two questions about the CMS. Link to this post

    I have been having a few questions for quite a while, and i was wondering if anybody would be able to help me with them.

    - I have "managed" to get a tree for one of my dataObjects after a lot of searching and trying stuff out i finally managed to get this done. Yet there are still a few things that keep bugging me about the implementation. So i have been wondering is there any "standard" way to create a CMS site tree in the same way you can with modeladmin for many dataobject gridfields. Like say i add the hierachy extension to one of my classes set the tree class and then it would instantly create a site tree with it. Instead of what i had to do now is look at the CMS site tree code and CMS assets code and copy much of it.

    - In the CMS when a dataobject has a has_one relation with another dataobject a dropdown field is created. Is there any way to add a button next to this to say: "add new" that way a new one could be created more easily if you ask me. Without having to go to the page of that specific dataobject.

  • swaiba
    Avatar
    Forum Moderator
    1792 Posts

    Re: Two questions about the CMS. Link to this post

    If you are talking SS2.4 then you can use...

    https://github.com/ajshort/silverstripe-itemsetfield/

    see "AllowCreate" in https://github.com/ajshort/silverstripe-itemsetfield/blob/master/docs/en/index.md

    I'm sure that ss.3.1 would allow creating one - but I've not come across the need yet - but please update this thread if you make a discovery

  • kinglozzer
    Avatar
    Community Member
    142 Posts

    Re: Two questions about the CMS. Link to this post

    For 3.1, there's this module: https://github.com/sheadawson/silverstripe-quickaddnew

    Not sure about the tree, I've never done it personally

  • Schippie
    Avatar
    Community Member
    32 Posts

    Re: Two questions about the CMS. Link to this post

    Thank you swaiba and kinglozzer for your replies that solves one question still leaves me with the tree question. I cant imagine that there is not a straight forward no hackish feeling way to implement a tree just like gridfields can be easily created.

    Still hoping somebody is able to provide me a answer to that question.
    Also sorry for the late reply christmas/new year and all.

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