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.

Data Model Questions /

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

Filtering dataobjects between subsites


Go to End


1181 Views

Avatar
gened

Community Member, 10 Posts

29 August 2012 at 10:27am

Hi I am developing 3 sites using the subsites in 2.4.7,

I have a series of FAQ categories I want to filter for each subsite so if the all site administrator goes to each FAQ page they will only see FAQ Categories or Dataobjects for that site. The idea I have would be perhaps to store the subsite id when the dataobject is saved and then using some customisation of the canView function in the FAQ category dataobject to filter the results based on what subsite the administrator is in?

I'm pretty new to SS does this sound right, or has anyone done something similar?

Thanks