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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Sort results based on relational tables relation


Go to End


2 Posts   945 Views

Avatar
craig-opticblaze

Community Member, 10 Posts

26 August 2016 at 10:01pm

Hi all,

I have 3 tables containing categories, courses and accreditation levels. I am wanting to sort the results I pull from the categories by a criteria in accreditation.

Categories has a relationship with courses and courses has a relationship with accreditation.
If I pull X from categories it needs to display under each different criteria from accreditation.

Is there a way to go about this?

Thanks

Avatar
martimiz

Forum Moderator, 1391 Posts

30 August 2016 at 7:47am

you're not saying what type of relation there is between those three, but I assume category has many courses, course has many accreditations? And could you maybe provide an example of what you'd like the output to look like?