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.

Customising the CMS /

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

Banner management


Go to End


2 Posts   2933 Views

Avatar
snapper

Community Member, 2 Posts

5 June 2010 at 3:38am

Hi all,

I am new to the world of silverstripe and have the majority of the site setup, was very nice and easy to do.

I want to add a module / widget: I want to store a collection of banners, a banner will contain an image, a title, some content and a link. And they will be visible on the home page (only).

I have been trying to follow the http://doc.silverstripe.org/private:tutorial:creating-a-module tutorial, and appear to have failed dismally, as it didnt work, there were no errors, or anything to make it clear where I messed up. I have run the /dev/build/?flush=1, but still there is no button on the top for my banners / random links!

Anyone able to help me out either by knowing the code I want / having the source files from the above tutorial working, or some other way.

Any help would be very much appreciated.

Avatar
craesh

Community Member, 25 Posts

16 June 2010 at 3:24am

Hi snapper!

I've created a banner module some while ago with DataObjectManager. Basically, you start with something similar as what I just described in another answer.

Maybe you can show is what you have already done, so we can help you extending it.

Greetings!
craesh