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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1534 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