3217 Posts in 853 Topics by 812 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 797 Views |
-
Adding items to the header of a nested template

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.ssI 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.
-
Re: Adding items to the header of a nested template

11 March 2009 at 2:29pm
Hi guys - still looking for a way to do this? Any ideas appreciated.
-
Re: Adding items to the header of a nested template

12 March 2009 at 6:44am Last edited: 12 March 2009 6:46am
http://doc.silverstripe.com/doku.php?id=built-in-page-controls#page_types
You may use <% if ClassName = ProductPage %>
| 797 Views | ||
|
Page:
1
|
Go to Top |


