Post by elmes » Mon Feb 11, 2019 2:01 pm

I'm writting css links In header.twig file with exact order. But in result-html all css links are alphabetically reordered. Which file is doing this?

Newbie

Posts

Joined
Mon Feb 11, 2019 1:55 pm

Post by paulfeakins » Mon Feb 11, 2019 10:29 pm

Why not just change the names of the CSS files to have numbers at the beginning to get the order you want?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by elmes » Tue Feb 12, 2019 5:01 am

Thanks for reply, Paul.
I thought that renaming files to control sorting will be last I do if no other way be found.
I suppose that Twig Library is doing that sorting and I have to ask my question to Symphony Community.
Or maybe some code beautifiers implemented in last steps of page rendering in Opencart?

Newbie

Posts

Joined
Mon Feb 11, 2019 1:55 pm

Post by paulfeakins » Tue Feb 12, 2019 6:22 pm

In my opinion renaming some files to work with the existing system is far more elegant (and easier and faster) than hacking away at the core code.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 31 guests