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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

Adding items to the header of a nested template


Go to End


3 Posts   1350 Views

Avatar
pingu

Community Member, 75 Posts

10 March 2009 at 2:03am

Is there a way to add items to the header of a nested template? My template structure is as follows:

themes/templates/Page.ss
themes/templates/Layout/ProductPage.ss

I want to add a javascript file reference to ProductPage.ss as it's the only template that requires the script.

I tried using Requirements in the init function of the ProductPage_Controller, however this won't work.

Would appreciate any help on this.

Avatar
pingu

Community Member, 75 Posts

11 March 2009 at 2:29pm

Hi guys - still looking for a way to do this? Any ideas appreciated.

Avatar
dab

Community Member, 50 Posts

12 March 2009 at 6:44am

Edited: 12/03/2009 6:46am