help to better help you:

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

What template is used for categories [SOLVED]

What template is used for categories

5 months 2 weeks ago - 5 months 2 weeks ago
#31873
Greetings,
My menu link is to JEM  categories. What template is being used? How can I override it?
None of the templates in html/com_jem/common seem to be used here.
The single category page uses my custom html/com_jem/common/default_jem_eventslist_small.php.

With tricks I just discovered the categories template is in components/com_jem/views/categories/tmpl/responsive/
How can I add the templates to my html/com_jem/? What path should I use for these overrides?

Attachments:

Last edit: 5 months 2 weeks ago by marq_104. Reason: Discovered location of the categories template file

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

Re: What template is used for categories

5 months 2 weeks ago
#31874
looks strange!

default_jem_entslist_small.php is only in:

mysite.ch/public_html/components/com_jem/common/views/tmpl/responsive/default_jem_eventslist_small.php

categories is in:

mysite.ch/public_html/components/com_jem/views/categories/tmpl/responsive/default_jem_eventslist_small.php

for category it starts in:
mysite.ch/public_html/components/com_jem/views/category/tmpl/responsive/default.php

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

Re: What template is used for categories [SOLVED]

5 months 2 weeks ago
#31875
With a lot of sluthing, namely adding a class name and giving it a background color (.gn-is-this-it {background="teal"} I could determine what template is being used. I added the class to
/components/com_jem/views/categories/tmpl/responsive/default_jem_eventslist_small.php and determined that this IS the categories template being loaded.
Then I copied the templates from /components/com_jem/views/categories/tmpl
to /html/com_jem/categories/, changed the background color to red, and it worked!!
If my thinking is correct, this means we can override more than just the templates in COMMON. Any template in /components/com_jem/views can be overridden if they are copied to /html/com_jem/folder-name-in-view/
The following user(s) said Thank You: jojo12

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

Time to create page: 0.407 seconds