No Code Attached Yet
avatar peterhulst
peterhulst
2 Oct 2025

Steps to reproduce the issue

For a content plugin 'contentnitifier' an override image 'new.gif' is created in:
/templates/Cassiopeia/images/contentnotifier/new.gif

Expected result

The image stored in:
/templates/Cassiopeia/images/contentnotifier/new.gif
is used.

Actual result

The origional image stored in:
media/contentnotifier/images/new.gif
is used.

System information (as much as possible)

Joomla 5.3.4 (and J4.0.0rc1)

Additional comments

The images is retrieved using:
$newimghtml = HTMLHelper::image("contentnotifier/new.gif","new.gif",'class="pch_contentnotifier_new"',true);

It works with (and old) template PurityIII.
With template Cassiopeia the override is ignored.

avatar peterhulst peterhulst - open - 2 Oct 2025
avatar joomla-cms-bot joomla-cms-bot - change - 2 Oct 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 2 Oct 2025
avatar richard67
richard67 - comment - 2 Oct 2025

@peterhulst When a template supports child templates, I think the image should to to /media/templates/site/cassiopeia/images/contentnotifier/new.gif. Maybe your other template PurityIII is an old style, legacy template which uses the old structure?

@dgrammatiko Can you confirm or correct me?

avatar dgrammatiko
dgrammatiko - comment - 2 Oct 2025

What Richard wrote above, the override images should be /media/templates/site/cassiopeia/images/contentnotifier/new.gif

avatar peterhulst
peterhulst - comment - 2 Oct 2025

@richard67 and @dgrammatiko
You are right. The correct path is indeed:
/media/templates/site/cassiopeia/images/contentnotifier/new.gif

I checked it and it works.
Purity III is an old template with an old style.

Furtermore I looked into the Joomla documentation to find a hint for this override.
In: Understanding_Output_Overrides
it is stated:
For templates supporting child template, the override file must be placed as follow at your current template media folder:
/media/templates/site/my_template/css/mod_test/mystyle.css
and that is correct.
However in the J4 documentation it is not mentioned.

avatar peterhulst peterhulst - change - 2 Oct 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-10-02 20:40:46
Closed_By peterhulst
avatar peterhulst peterhulst - close - 2 Oct 2025
avatar richard67
richard67 - comment - 2 Oct 2025

@peterhulst For documentation see section "File Structure" here: https://docs.joomla.org/J4.x:Cassiopeia_Template_Folders_and_Files

avatar richard67
richard67 - comment - 2 Oct 2025

P.S.: The doc it not 100% clear, but the screenshot there shows the difference between 4.0 and 4.1

Add a Comment

Login with GitHub to post a comment