Access Keys


Links Module

Posted by Gordon Anderson on 24 October 2012 | 0 Comments

Footer links from the website


git clone silverstripe-links
cd silverstripe-links
git checkout -b stable24


This module allows you do do the following:

Footer Links

1) Add links to columns in the footer of your page. To do this

  • Create a page of type FooterLinksFolder
  • Create a child page of type LinksFolder for each column
  • Add as many links as you like to the LinksFolder using the Links tab
  • In your template, add the following

    <% include FooterLinks %>

Make sure you have the same number of LinksFolder objects for the number of columns in your footer design. You can change the HTML output by overriding in the Includes folder of your own theme.

Pages of Certain Types Can Have Links Associated With Them

2) Add links, e.g. 'Related Links' to pages in your site.

Link::$classesToAddLinksTo = array('Article');

This will ensure that only pages of ClassName 'Article' will have a Links tab on them when editing.


Data Object Manager,

Silverstripe Version Compatibility

2.4 only (tested with 2.4.5+) - stable24 branch

Tags: , ,


No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments