I'm trying to import multiple css resources in my own CKAN theme using Fanstatic like this:
{% resource 'my_fanstatic_library/b.css' %}
{% resource 'my_fanstatic_library/a.css' %}
Unfortunately CKAN renders them in alphabetical order:
<link rel="stylesheet" type="text/css" href="/fanstatic/mytheme/:version:2015-05-11T14:07:18/a.css" />
<link rel="stylesheet" type="text/css" href="/fanstatic/mytheme/:version:2015-05-11T14:07:18/b.css" />
To overwrite the order I tried to create a resource.config-file with the following content:
[main]
order = b.css a.css
[custom render order]
b.css = 1
a.css = 2
[depends]
a.css = b.css
But sadly there was no change in the rendering order. I placed the resource.config file in the mytheme/fanstatic/ folder and moved it to mytheme/ but nothing helped.
orderandcustom render orderboth work for me, howeverdependsjust throws an error. Yourresource.configfile should be atmytheme/resource.config.I need to restart the server after making changes to
resource.config, however.Which version of CKAN are you running and which server do yo use?