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.

Template Questions /

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

random banner


Go to End


2 Posts   1628 Views

Avatar
MjamTaart!

Community Member, 5 Posts

20 November 2010 at 5:30am

Hi,

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?

Avatar
swaiba

Forum Moderator, 1899 Posts

2 December 2010 at 9:43pm

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 --> http://silverstripe.org/template-questions/show/10853