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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

Dynamically related content


Go to End


1243 Views

Avatar
tonibecker

Community Member, 6 Posts

3 May 2012 at 10:14pm

Hy dudes from all over the world.
I'm having problems in design-solution-approach.

Here's the scenario:
I have my sitetree in this structure:

company ->Locations->Events

All of those have galleries and articles in a subsection.

I would like to use the tag system, but here's my problem. I want to crawl the whole sitetree, collect all tags from every page and than compare by 1 tag, 2 tags, 3 tags.... If one of thes matches show the related content.

In next step i have to filter them, let's say: I have pagetype article with 2 related tags show only the related content from documenttype article.

I solved this problem in umbraco and c# but i like the approach of silverstripe to handle data with grids and the extensibility.

Greetings Toni.

Code snippets would be nice if somebody solved this problem.