help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

[Solved] Override path for JEM

[Solved] Override path for JEM

6 years 9 months ago - 6 years 9 months ago
#24878
I'm working with JEM 2.2.2 with Joomla 3.8.5

Because I have some problems with overrides for JEM, which does not accept those, I checked the forum if someoneelse has similiar problems. I found a solved threat named "Modifications" which described the path to use for the override:
Jojo12 wrote on Feb 10th 2018:
...... copy the 3 php-files in component/com_jem/views/event/tmpl/ to template/gantry5[or similar/html/event/

I thought the target folder should be:
...template/[whatever]/html/com_jem/views/event/tmpl/default.php
for example.

I'm wrong?

Greetings
hike39
Last edit: 6 years 9 months ago by hike39. Reason: solved

Please Log in or Create an account to join the conversation.

Re: Override path for JEM

6 years 9 months ago - 6 years 9 months ago
#24879
yes you are wrong.
take a look here: How to override the output of Joomla Core
Its for Joomla Core but the principle is the same for jem.
Last edit: 6 years 9 months ago by Egnarts.
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Re: Override path for JEM

6 years 9 months ago
#24892
Hi Egnarts,
we are both true, because in the article you linked is stated:
".....
The directory structure you need is:
TEMPLATE_NAME/html/EXTENSION_NAME/VIEW_NAME/FILE_NAME.php
For example, if you want to change the way that the 'Article' view displays a com_content article, then you should copy the file at :
PATH_TO_JOOMLA/components/com_content/views/article/tmpl/default.php
to
TEMPLATE_NAME/html/com_content/article/default.php
..."
So in the example of Jojo12 the mention of the EXTENSION_NAME is missing. And in mine the "views" directory is to much.

Nevertheless I'll test it on my test server.

THX a lot for your hint.

Please Log in or Create an account to join the conversation.

Re: Override path for JEM

6 years 9 months ago
#24893
I've just tested it. It works!!!! :)

My question is now: Why cann't the source path and the override path not be the same? In this case why must 'views' and 'tmpl' directories in the override path be omitted? That's a little bit confusing.
But there must be a rest of mystery.

Greetings
hike39

Please Log in or Create an account to join the conversation.

Re: Override path for JEM

6 years 9 months ago - 6 years 9 months ago
#24894
Edit: Just solved.
For the mystery: Ask the Joomla developers :D

If you want to do an override, did you take a look at JEM-Responsive? Thats a responsive override for JEM.
The Responsive JEM
Last edit: 6 years 9 months ago by Egnarts.

Please Log in or Create an account to join the conversation.

Time to create page: 0.424 seconds