SilverStripe Installation Instructions
Signup and Site Submission Required to fully install plugin.
- Create a file named local_81773.xml that is writable by the web server. The file should be blank and it should be located in the Silver Stripe install directory folder /sapphire/. On unix you would CHMOD 666 on windows you will need to access your custom control panel to set the permissions or contact your hosting company.
- Copy the code in the textarea below to the end of your /mysite/code/Page.php file
- Add the following Code to /code/Page.php before the comments: /**
* Site search form
*/
/** * Generates tla Ads */ function tla_ads(){ ob_start(); tla_ads(); $ads= ob_get_clean(); return new ArrayData(array('tla_ads'=>$ads)); } - Ad this code to your theme/mytheme/templates/Layout/Page.ss where you would like the ads to show.
For HomePage Only<% if URLSegment = home %> <% control tla_ads %> $tla_ads <% end_control %> <% end_if %>
Or Site Wide<% control tla_ads %> $tla_ads <% end_control %>
Package Info
This has only been tested with SilverStripe 2.3.3
