Educon 2 Article Override Of Override Not Taking Effect - Question | JoomShaper

Educon 2 Article Override Of Override Not Taking Effect

RL

Riku Lahteenmaki

Template 10 months ago

If I place the Educon 2 article default.php file to this directory:

templates/educon_ii/overrides/com_content/article

and edit it, there is no effect on the site's pages.

Only when the file is placed in this directory:

templates/educon_ii/html/com_content/article

does it show the changes in the article views.

0
11 Answers
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #179017

Hi Riku Lahteenmaki,

Thank you for your questions. Here is your answer:

  1. html Directory: templates/educon_ii/html/ directory is Joomla’s default location for overrides. Any files placed here are automatically recognized by Joomla and applied to the respective views.

So if you want to chages single blog details view, then you have to changes in templates/educon_ii/html/com_content/article location.

  1. If you want your overridden code to work from the templates/educon_ii/overrides/ directory, the code in the html folder must already override from the helixultimate plugin.

However, if templates/educon_ii/html/com_content/article/default.php contains raw code without being overridden, the code in templates/educon_ii/overrides/com_content/article will not take effect.

Note: In the Educon II template, the file templates/educon_ii/html/com_content/article/default.php contains raw code, which is why your overrides in the /overrides directory are not working.

So, please follow the solution 1 for your problem.

Feel free to ask if you have further questions.

Best regards.

0
RL
Riku Lahteenmaki
Accepted Answer
10 months ago #179109

Thank you for the detailed answer.

Question: if Educon 2 has an update, can there be a new raw code version of the article default.php, which will automatically replace the current default.php in the html directory?

If so, how could I avoid such situation?

I understand that the override directory is specifically meant for this purpose. But now, with Educon 2 I cannot use it.

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #179118

Hello,

Thank you for your question!

The single article default layout rarely requires changes unless there are issues with the latest PHP or Joomla versions. Customization typically depends on specific requirements.

If you need to modify the default.php file, feel free to do so, but make sure to keep track of your changes. The original file is always available in our templates on JoomShaper for reference.

I hope this clarifies things!

Best regards

0
RL
Riku Lahteenmaki
Accepted Answer
10 months ago #179138

Hello Asfakur,

But why does the Educon 2 article default.php in the html directory have raw code by the template itself?

As you have introduced the override directory for wembasters to avoid template updating to cause any changes in the article views, why is the Ecudon 2 different in this respect?

0
RL
Riku Lahteenmaki
Accepted Answer
10 months ago #179152

Hello Asfakur,

I just put this code into the html/com_content/article/default.php of Educon 2 template:

require HelixUltimate\Framework\Platform\HTMLOverride::loadTemplate();

Then I added the default.php from the template plugin directory to the template's override directory:

overrides/com_content/article/default.php

Then I edited this file and the now the changes are showing on the site's pages.

So, now I have an override, which will not be lost even if the templates article default.php in the html directory is updated. But in that case, I would have replace the file's code with the above code again.

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #179203

Absolutely, you're right. The override code will not be lost even after an update, but you will need to replace the code in the HTML directory to apply the override again.

Best regards

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #179202

Hi Riku Lahteenmaki,

Thank you for your questions.

Regarding the template default settings, our developer writes the code in the HTML directory instead of the override directory. This applies not only to Educon 2 but also to other templates.

Best regards

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #179274

Hi Riku Lahteenmaki,

The plugin directory forms the foundation of the Helix Ultimate framework. Many templates based on the Helix framework customize and override the core Helix plugin to meet specific design and functionality requirements. These customizations often involve modifying the raw code in the HTML directory, where the core functionalities are overridden by template-specific changes.

When multiple Helix-based templates require core functionality updates, our developers update the Helix Core plugin. Clients can then easily upgrade the core functionalities with a single click by downloading the latest version of the Helix Core plugin.

I hope this clarifies why the Helix Core plugin is maintained separately. Regarding the original query, we have addressed and resolved the issue. Therefore, it would be great to mark the most helpful response as the accepted answer to close the post.

Best regards

0
RL
Riku Lahteenmaki
Accepted Answer
10 months ago #179223

Hi Asfakur,

Please can you explain why the html directory is used for the article default.php instead of the plugin directory, which would be consistent with other components.

0
RL
Riku Lahteenmaki
Accepted Answer
10 months ago #179283

Thanks for the explanation. Now I understand the principles of the template design.

0
Asfakur Rahman Saikat
Asfakur Rahman Saikat
Accepted Answer
Support Agent 10 months ago #179347

You're welcome! I'm glad the explanation clarified the principles of the template design for you. Best regards

0