Jump to:

5451 Posts in 1673 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » [MOVED]

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

Page: 1
Go to End
Author Topic: 588 Views
  • pingu
    Avatar
    Community Member
    75 Posts

    [MOVED] Link to this post

    [MOVE TO TEMPLATES]

    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.

    588 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.