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.

All other Modules /

Discuss all other Modules here.

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

[SOLVED] SubSites - get object from other subsite


Go to End


2 Posts   1849 Views

Avatar
walec51

Community Member, 16 Posts

30 April 2009 at 6:46am

Edited: 30/04/2009 11:36pm

Hi,

How can I get an data object from another subsite using something like this:

DataObject::get_one("SomePage", "SomeBoolean = 1");

Thanks in advance!

Avatar
walec51

Community Member, 16 Posts

30 April 2009 at 11:35pm

Just found the:

Subsite::$disable_subsite_filter

also I found out that the GroupSubsites filter gives access to the main site (SubsiteID = 0) in every subsite while the SiteTree doesn't. Feels like I bug to me so I reported it at:

http://open.silverstripe.org/ticket/3961