18591 Posts in 4875 Topics by 2285 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 465 Views |
-
treedropdownfield: how to filter subsites?

20 May 2011 at 1:07am
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.
-
Re: treedropdownfield: how to filter subsites?

30 May 2011 at 8:34am
hu hu,
isn't there anybody who can help?
Carsten...
-
Re: treedropdownfield: how to filter subsites?

1 June 2011 at 12:08am
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.
| 465 Views | ||
|
Page:
1
|
Go to Top |


