Jump to:

22976 Posts in 11702 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » treedropdownfield: how to filter subsites?

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: 771 Views
  • dacar
    Avatar
    Community Member
    168 Posts

    treedropdownfield: how to filter subsites? Link to this post

    Hi, i am trying to get a filtered treedropdown from sitetree. I'd like to show only entries from the Subsite a user is currentely working on in the CMS. Can anybody help?

    new TreeDropdownField("Link_internalID", "Interner Link", "SiteTree")

    Greetings, Carsten.

  • dacar
    Avatar
    Community Member
    168 Posts

    Re: treedropdownfield: how to filter subsites? Link to this post

    hu hu,

    isn't there anybody who can help?

    Carsten...

  • IOTI
    Avatar
    Community Member
    187 Posts

    Re: treedropdownfield: how to filter subsites? Link to this post

    dacar,

    I little more information would help me. Are you using the subsites module?

    I did a quick test, installed subsites module, and setup a TreeDropdownField on my Page.php. I then used the drop down in the top right corner of the CMS to select my subsite. The TreedropdownField automatically filtered to only show the subsite pages.

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