[4.0] Added option 'order' to method addStyleSheet#23912
[4.0] Added option 'order' to method addStyleSheet#23912todordev wants to merge 1 commit intojoomla:4.0-devfrom todordev:stylesheet-order
Conversation
|
Being blunt here, I feel like time is better invested on the web asset API instead of adding what I personally equate to a core supported hack to the API. If you really need this fine grained level of control of stylesheets you can already resort the |
|
WebAsset is awesome feature!!! It's a wonderful solution for many of my issues. :) |
|
Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/23912 |
Summary of Changes
Added a code that will reorder stylesheet links if you provide an option 'order' to the method addStyleSheet().
That will be useful if you would like to overwrite default template styles.
Testing Instructions
Include CSS file from your view and set option 'order'.
For example:
$this->document->addStyleSheet('../media/fixform.css', ['order' => 6]);I am going to attach the file fixform.css, if you would like to use it for test.
Result
Without option 'order'.

With option 'order'.

fixform.css
fixform.zip