New "Override" Process Broken - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

New "Override" Process Broken

S

Steve

Helix Framework 4 years ago

For years now, using the backend "template/create overrides" process has worked the way it was intended to: to prevent the overwriting of modified files during updates. This has worked for years.

The expected result of creating an override is to duplicate the "default" view of a module or component in a place (HTML folder) so that it can then be modified and used form that location. The duplicate looks exactly like the original when you start. That's the pont.

Anywhere you go that discusses Joomla and overrides will reference this process. "template/create overrides" is built around that process.

I work with Joomla every day. I have for about 15 years or more. I'm not an expert and I don't know everything, but I can say for sure I don't believe Joomla, or website development using it should be any more difficult or compllicated than it absolutely has to be.

When you diverge from the established functionality (that clearly is intentional because it's included in Joomla 4) to do your own thing, such as breaking this built in functionality (no, you didn't break it: you just rendered it useless - same thing), you effectively cut off a key functionality by moving it somewhere else that someone who didn't know, would have great difficulty finding or being aware of and then having the skills necessary to move the files manually. I have them, but I'll guarantee a lot of people don't, and many that do may not be comfortable doing it.

This does not serve anyone. It adds a level of complexity that is truly unnecessary. The argument: https://www.joomshaper.com/documentation/helix-framework/helix-ultimate-2/template-views-override "3. Now you can edit & customize default.php file without fear that the next update will overwrite your changes." describes the existing functionality. It's added nothing but complexity and made it harder.

So, now that I have no choice in this process, I've created an override of the basic login module on the backend like always. I navigate to the folder the file is created in "html/mod_login/default.php"

and rather than getting the actual default.php for the module, I get: "require HelixUltimate\Framework\Platform\HTMLOverride::loadTemplate();" and nothing else.

Now, because I know you guys have hijacked the entire override process, I will manually go out to the actual module folder "modules/mod_login/tmpl" and manually copy the files to create the override - except now I put those files in "overrides/mod_login", not "html/mod_login".

Either way doesn't work. If I move the files to "html/mod_login" or "overrides/mod_login" I do NOT get the duplicate layout of the module I should get.

This "overrides" folder is a terrible idea. First, it duplicates an existing and established process built into the core and replaces it with a more complicated and infinitely less user friendly process that clearly doesn't work as it's supposed to.

Add to that the potential for conflict with other compoinents and/or modules.

This doesn't work. At all. When I create an override, I should get a duplicate of the layout being overridden. Period. Nothing more. No more adjustments. That is the way it's designed.

THAT'S NOT WHAT HAPPENS.

The idea that you have now created a much more complex system that is going to require more time to make work the way it should out of the box is the single biggest reason I have taken the time to write this. ![]https://upload.picpaste.me/images/2021/09/27/overrides-issue.jpg

0
2 Answers
Toufiq
Toufiq
Accepted Answer
Senior Staff 4 years ago #36467

Hi there,

Thanks for contacting us. We just added new override system. Even we didn't remove Joomla default override system. You can use both system.

-Thanks

0
Pavel
Pavel
Accepted Answer
4 years ago #36497

Hi Steve. I'm not a member of the joomshaper team, but just a user like you. Therefore, I can speak without false courtesy. Stop your hysteria and re-read the posts that I wrote specifically for you in your other topic on this issue. Nothing changed. The standard Joomla override system works as before.

Additional explanation(!!!). Helix Ultimate has on board already overrided PHP files including the Login module. Helix Override system is exactly for such cases. Previously, you could not override these files without losing them when template updating. Now you can do it. There is an improvement in user experience.

To use the standard Joomla override system, simply change the file name that you are overdered in the standard HTML folder. For example, from default.php to mydefault.php. After that, you can choose this new overrided layout in the drop-down list, in the settings of your module.

And consider the fact that Login Module consists of two files default.php and default_logout.php. So you need to rename both to mydefault.php and mydefault_logout.php.

0