OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Stylesheet & Script caching and ordering #6158

Open leventesen opened 8 years ago

leventesen commented 8 years ago

A) In v1.9.2 I couldn't find a way to change the order of stylesheets. Every view calls Style.Include() to include its own stylesheet but beacuse of my usage, reset.css is not in the first order so there must be a way to change the order in head tag. How can I do that?

B) Is there a way to add ?v=(timestamp) at the end of resources? I tried it several ways but couldn't achieve..

sebastienros commented 8 years ago

First thought would be to add an optional position parameter to includes, for scripts and styles. We need to ensure it works with dependencies, and also the calls to Require.

@pszmyd suggest o use a lambda to define an alteration to the link so that we could add this with our own logic. I suggest we also have default optional behavior like rendering the modified file attribute.