Hi, I’m new to Silverstripe this week (so, v3…) so apologies if there is a better forum area for this. I’ve been searching and can’t find a solution. Should be simple for those with experience so I hope you can help…
I’ve set up a number of pages, classed CaseStudyPage, that are all children of one CaseStudiesHolder page.
Each CaseStudyPage could have any number of Skills associated with it so I’ve managed to set up a DataObject called Skill, which has a many_many relationship with CaseStudyPage. All good so far. Phew.
Now, in my CaseStudiesHolder page I want to show teasers for all of its children – easy. But then I want the front end user to be able to click on one of a few skill links to filter the list of CaseStudyPages to just the ones that have that skill.
I don’t think I need to be fancy and let them choose more than one skill so the link could be a simple ‘a’ tag with a GET variable passed to the same page. How would the page then filter the list of CaseStudyPages? Any tips on what I should/could be using here would be very welcome, thanks.