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

Dynamically related content


Go to End


1608 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.