Hi,
How can I get an data object from another subsite using something like this:
DataObject::get_one("SomePage", "SomeBoolean = 1");
Thanks in advance!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Hi,
How can I get an data object from another subsite using something like this:
DataObject::get_one("SomePage", "SomeBoolean = 1");
Thanks in advance!
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: