[4.0] favicon changes to support child templates#30388
[4.0] favicon changes to support child templates#30388wilsonge merged 5 commits intojoomla:4.0-devfrom
Conversation
|
Object not found. Have not installed templates from the other PR yet. Before PR: After PR: |
Co-authored-by: Quy <quy@fluxbb.org>
|
I have tested this item ✅ successfully on a15b321 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30388. |
1 similar comment
|
I have tested this item ✅ successfully on a15b321 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30388. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30388. |
|
FWIW, using |
Can you elaborate why? |
|
Because CSS and JS files are not media. |
AFAIK the majority (if not all) of the contents of the |
|
It's not about the folder name. There are reasons why template assets are treated differently than assets of other extensions. For instance, they should be final and non-overridable. If they're placed in media folder, they become overridable. The magic code in |
|
There are few misconceptions here:
That's wrong. The new mode templates (eg the ones that support Childs) have both their assets and the overriding folders on the media template therefore folders line css, js and images are indeed final and non-overridable (src === override)
The only extra lookups are for the child templates. There won't be a lookup eg for a current template in any of the media/templates/... Actually in order any of this to work the template needs to opt in with an
Let me write this one more time: Templates that support child templates use ONLY the media folder for their OWN assets but ALSO for the OVERRIDES. Static assets for those templates (and their Childs) EXISTS ONLY IN THE MEDIA FOLDER |
|
OK, you're right about performance. Not a fan of these differences between normal and inheritable templates though. Are you going to expose media folder in |
Yes that's the plan. Everything will be as before with the slight difference that ALL static assets will live in the media folder. UX should be the same from a user's GUI perspective. For devs the only hurdle is that they have to slightly adjust their packaging so particular files/folders end up in the media folder. I know that people hate changes so you have every right to hate/blame me for this |
|
Thanks! |
…om_templates * '4.0-dev' of github.com:joomla/joomla-cms: (70 commits) [4.0] Child templates consistency (joomla#30387) [4.0] favicon changes to support child templates (joomla#30388) [4.0] Update Readme for Api tests (joomla#30539) [4.0] [Multilingual Status module] Adding displaying a possible error if URL Language Code is empty (joomla#30537) [4.0] Display of horizontal mod_articles_news module (joomla#30527) [4.0] Useless installation lang strings (joomla#30568) [4.0] Numbers not digits (joomla#30559) [4.0] Accessibility plugin position (joomla#30552) [4.0] fix for inherit fields (joomla#30557) [4.0] Redundant words (joomla#30555) add missing legend to fieldset (joomla#30528) [4.0] [a11y] add statement on found results (joomla#30535) [4.0] com_finder ul instead of dl for easier styling (joomla#30534) [4.0] Messages/Alerts: using icons instead of text as heading (joomla#30516) [4.0] Increase API Test Coverage (joomla#26722) [4.0] Implementing display of password requirements for frontend (joomla#30473) [4.0] FieldsHelper: Choose a first available category correctly (joomla#30268) Sort options (joomla#30531) Clear checkboxes on back button (joomla#30498) Update _icomoon.scss (joomla#30436) ...
Pull Request for Issue # .
Summary of Changes
Cascade correctly for any parent/children template
Testing Instructions
Checkout this PR or download the installable at the end of the GitHub page
Check that both Cassiopeia and Atum have correct favicons
Install the templates from the PR #30192 (links in the description) and check that both parent and child templates have correct favicon (check the url)
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Documentation Changes Required