[ckan-dev] {% scripts %} tag
Toby Dacre
toby.okfn at gmail.com
Tue Mar 26 10:07:58 UTC 2013
On 25 March 2013 21:14, Matt Moyles <matt.moyles at matricresearch.com> wrote:
> I'm having a problem getting my script to be added to the bottom of the list. I need to load my script after jquery.
>
> Currently, I'm trying this:
>
> {% block scripts %}
> {{ super() }}
> <script src="/ckanext-news/js/homepage.js"></script>
> {% endblock %}
>
> but in the output I am getting:
>
> <script src="/ckanext-news/js/homepage.js"></script>
> <script>document.getElementsByTagName('html')[0].className += ' js';</script>
> <script type="text/javascript" src="/fanstatic/vendor/:version:2013-03-12T20:56:49.75/jquery.js"></script>
> <script type="text/javascript" src="/fanstatic/vendor/:version:2013-03-12T20:56:49.75/bootstrap/js/bootstrap-transition.js"></script>
> <script type="text/javascript" src="/fanstatic/vendor/:version:2013-03-12T20:56:49.75/bootstrap/js/bootstrap-collapse.js"></script>
> <script type="text/javascript" src="/fanstatic/vendor/:version:2013-03-12T20:56:49.75/bootstrap/js/bootstrap-modal.js"></script>
> <script type="text/javascript" src="/fanstatic/vendor/:version:2013-03-12T20:56:49.75/bootstrap/js/bootstrap-alert.js"></script>
> <script type="text/javascript" src="/fanstatic/vendor/:version:2013-03-12T20:56:49.75/bootstrap/js/bootstrap-tab.js"></script>
>
> I've been hunting through the layout_base.html and layout.html templates but have been unable to figure this out. Do I need cache the script with fanstatic? If so, is there a guide on how to use fanstatic?
Matt,
have a look here
http://docs.ckan.org/en/latest/resources.html
>
> Matt
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
More information about the ckan-dev
mailing list