Jump to:

3434 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Requirements in Include load after Layout-Requirements

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

Page: 1
Go to End
Author Topic: 893 Views
  • joern
    Avatar
    Community Member
    28 Posts

    Requirements in Include load after Layout-Requirements Link to this post

    Hi,
    I have a problem with my Requirements, which I describe briefly:
    Because the includes/header.ss is always loaded, I want to embed here the "global" css and javascript files. e.g. The jQuery library.

    In the layout/pagetype.ss I load the required javascript files for this pagetype, but files are loaded before the library is loaded.

    <!-- loaded in Layout/pagetype.ss -->
    <script type="text/javascript" src="http://local.ss/themes/mysite/js/pagetype.js?m=1266431425"></script>

    <!-- loaded in includes/header.ss -->
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="http://local.ss/themes/mysite/js/global.js?m=1266420678"></script>

    In what order the files are gone through?

    I'm using the 2.4-beta…

    Thanks and greetings
    Jörn

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