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

How to add a list of related pages at the bottom of a page.


Go to End


3 Posts   1036 Views

Avatar
gervel

Community Member, 4 Posts

21 May 2011 at 11:12pm

Hi!, I'm new to silverstripe, I don't know how to add a list of related pages at the bottom of a page.
I have attached an image below showing how it should look like, I want it to generate a list that is related to the topic automatically. Thanks ^^

Attached Files
Avatar
martimiz

Forum Moderator, 1391 Posts

23 May 2011 at 12:35am

You could use some sort of keywords field on each page, where you add a list of keywords, then create a method RelatedPages() in your Page_Controller that looks for similar keywords to the ones attached to the current page?

Avatar
gervel

Community Member, 4 Posts

24 May 2011 at 5:57pm

Hi,
Thanks for the reply, can you give an example?