Module for adding banner images to pages
- Henrik Olsen <Henrik (at) mouseketeers (dot) dk>
- Silverstripe 2.4
- DataObjectManager < http://silverstripe.org/dataobjectmanager-module/ >
- Uploadify < http://silverstripe.org/uploadify-module/ >
-
Install DataObjectManager < http://silverstripe.org/dataobjectmanager-module/ > and Uploadify < http://silverstripe.org/uploadify-module/ >
-
Put the banner folder inside your project
-
To enable the banner module on all pages, add the following to your mysite/_config.php file:
DataObject::add_extension('Page', 'Banner');
To enable the slideshow on specific pages, for example your home page, add the following to your mysite/_config.php file:
DataObject::add_extension('HomePage', 'Banner');
-
Build the database (e.g. http://localhost/mysite/dev/build)
-
Add <% include Banner %> to your template