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.

General Questions

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

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

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


Reply

3 Posts   663 Views

Avatar
gervel

21 May 2011 at 11:12pm Community Member, 4 Posts

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

23 May 2011 at 12:35am Forum Moderator, 1091 Posts

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

24 May 2011 at 5:57pm Community Member, 4 Posts

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