ckan - Order of css resources using Fanstatic -
i'm trying import multiple css resources in own ckan theme using fanstatic 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 order tried create resource.config-file 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 no change in rendering order. placed resource.config file in mytheme/fanstatic/ folder , moved mytheme/ nothing helped.
order , custom render order both work me, depends throws error. resource.config file should @ mytheme/resource.config.
i need restart server after making changes resource.config, however.
which version of ckan running , server yo use?
Comments
Post a Comment