Jump to:

23478 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Adding Requirements::javascript to page.php (editing problem)

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 443 Views
  • Loopy
    Avatar
    Community Member
    20 Posts

    Adding Requirements::javascript to page.php (editing problem) Link to this post

    Hi everyone

    I need to use javascript on silverstripe the. the code is as follows

    <script src="http://static.supplier.com/api/badge/js/21323-9" type="text/javascript"></script>

    Looking through documentation it looks like I should be able to just add Requirements::javascript to mysite/code/page.php however when i open this file in note pad it has little squares subdividing text which I cannot reproduce on key board. Can anyone tell me what these are and how I put new one in after adding Requirements::javascript?

    Thanks

    443 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.