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.

Template Questions

random banner


2 Posts   808 Views


20 November 2010 at 5:30am Community Member, 5 Posts


I'm a newby at SilverStripe and php. I already succeed in making my own theme. Now I'm wondering if it is possible to add some sponsor banners at the top and side of the page (not in the sidebar as a widget). The banners need to show at random and link to their own URLs in a new window.

I already searched the forum and documentation, but I can't find a way to do this in SS.
The current website uses a included php file in the template. Can I use the same file for my SS theme? How?


2 December 2010 at 9:43pm Forum Moderator, 1796 Posts

Shouldn't be too much of a problem... Create something like...

*snip* <-- was going to write code here, but...

I think you'll find enough info here -->