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

Add DataObject items to the SiteTree list


Go to End


1278 Views

Avatar
Martin D.

Community Member, 21 Posts

16 April 2014 at 8:50am

Edited: 16/04/2014 8:50am

Hi guys

I am trying to find out how to add items to the SiteTree list that is used when creating a link (the CMS places an ajax call to this method /admin/pages/edit/EditForm/field/CallToActionLinkID/LinkForm/field/SiteTreeID/tree).

I have found ways to exclude items (https://github.com/micschk/silverstripe-excludechildren) from the DataList object but nothing about adding items.

Thanks!

Martin