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.

All other Modules

Discuss all other Modules here.

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

[SOLVED] SubSites - get object from other subsite


Reply

2 Posts   1213 Views

Avatar
walec51

30 April 2009 at 6:46am (Last edited: 30 April 2009 11:36pm), Community Member, 16 Posts

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

30 April 2009 at 11:35pm Community Member, 16 Posts

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