The overrides system of Joomla is flawed #38587
Replies: 1 comment 1 reply
-
Yeah, much of rendering (component view and layouts) thing is built for Web view, and overrides also. Quick fix for API was add "fake template": joomla-cms/libraries/src/Application/ApiApplication.php Lines 194 to 208 in 3074a99 I probably would expect that for non Web context an override would look for a default site template.
You will be surprised how much "file exists" PHP doing under Class loaders. UPD: In J4 css,js assets checked only once before actual rendering, in oposite to older joomla, when HTMLHelper was used for add these files. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This comes in 2 parts:
For the first I left a comment in @Fedik's PR
For the second: Templates are the only entity that HOLDS any overrides thus templates SHOULD provide a resolution (eg a json file with all the layout and asset overrides or even better a .php returning 2 objects one for the static files and one for the layouts, this will increase the efficiency if OPCache is enabled) instead of having to do a gazzilion of I/O file exists checks!
Since this is touching the architecture of the platform @laoneo @nibra @HLeithner might be for you
Beta Was this translation helpful? Give feedback.
All reactions