Questions tagged [template-override]

A Template Override is a file in your Joomla template directory that is loaded instead of the normal core Joomla file. This is done in order to change the layout or functions of certain parts of Joomla, without changing the core files, because these are updated and overwritten whenever Joomla is updated.

Filter by
Sorted by
Tagged with
0 votes
2 answers
402 views

Override List of all tags

I'm working on a override for com_tags List of all Tags, i want to change when clicking on the tag title the list of items (articles) will slide (accordion) instead of open in a new page. I create all ...
2 votes
1 answer
513 views

How do I sort articles in category blog using a custom field value?

I have created a custom field date and added content to the articles of a category. How can I now sort the articles in the category blog overview by this field? What should a blog.php and blog_item....
0 votes
3 answers
430 views

Custom fields - JS in template override

We need to add some enhanced ecommerce tags to standard Google Analytics tracking on few pages. We think the best way to do it would be to use Joomla Custom fields so we created a custom field for ...
0 votes
1 answer
187 views

How to make frontend module editing as modal in a custom template?

In layout override files, this is successfully outputting the content of the modules plus the icon for frontend module editing. But when clicked it opens the module editor as a full page instead of as ...
0 votes
1 answer
51 views

Tagged Weblinks appearing in a Compact List linking to items on external site require two clicks to get to items. - Version 4.4.2 -

At the url below there is a tag at the top left called "Big Picture Pubs". It leads to a table showing a compact list of tagged weblinks. https://www.victoriasforestryheritage.o ... cture....
1 vote
1 answer
54 views

How implement the PHP strip_tags in the Joomla 4-file com_content/archive/default_items.php

In Joomla 4.3.1, I've made an override of the com_content/archive/default_items.php Now I want to strip tags and display the string (text from article) as one line <p> only. Without any ...
0 votes
1 answer
82 views

Why is my override to one template file not working?

I'm using Joomlashack's Novitas template, at a website updated with the LATEST extension and Joomla core updates as of two weeks ago. I have a change I want to make to this file: /templates/...
0 votes
3 answers
447 views

Setting template color scheme

I just want to create a new color scheme and replace the root primary colors with it, how do I proceed?
0 votes
1 answer
49 views

How do I override Joomlas default field template, but just in my component?

Is it possible to override the default field template just in my component? How would I go about doing it? The template I specifically want to override is "joomla.form.renderlabel", which is ...
0 votes
1 answer
115 views

Joomla 4 - Cassiopeia index.php override

I have created a child template from the main cassiopeia template and I can see it there. I then created an index.php in the root of the child template folder. Making changes to this file doesn't ...
1 vote
1 answer
217 views

About Joomla 4 Lazy Loading feature

everyone. I've read this: https://magazine.joomla.org/all-issues/january-2021/using-native-lazyloading-on-your-website, so it's clear to me that media images inserted in articles content will be lazy-...
0 votes
1 answer
249 views

ModuleHelper::renderModule with custom parameters

I am loading a module from an article overide. The module needs different parameters depending on places I load it from. In Joomla 3, I could do use (in an article overide) : // Load module jimport('...
0 votes
1 answer
150 views

How to make an adjustment on User Profile page in Community Builder

I have a Joomla 3.9.26 site with CB 2.6.0 installed. I need to make some little update on the User Profile page. This is the url of the page: index.php?option=com_comprofiler&task=userProfile&...
0 votes
0 answers
25 views

Restricting New User "Assigned User Group" Options for Manager Level Accounts

I've created a new user group under the "Manager" ACL called "User Manager". The only function of the "User Manager" is to create or delete "Registered" user ...
2 votes
1 answer
104 views

Adding Javascript to the Administrator Template

Is there a way to add Javascript to the Joomla Administrator template without creating a child template? Something equivalent to /media/templates/administrator/atum/css/user.css for Javascript.
4 votes
1 answer
967 views

How do I override a Joomla XML?

For example, we have a module called MOD_PR_SLIDER. Which has this file: public_html/modules/mod_pr_slider/mod_pr_service.xml I already copied that file in: public_html/templates/my_template/html/...
3 votes
5 answers
18k views

How to create a category blog layout with all articles shown in full?

Hello Joomla community, I'd like to create a category blog layout where all articles are shown with their entire content. I.e. without having the article shortened at the 'read more' position. What's ...
0 votes
1 answer
67 views

Alternative switcher.css in Joomla 4

Example switcher radio field: <field name="myradio" type="radio" default="0" label="Myradio" class="btn-group btn-group-yesno" layout="joomla....
1 vote
0 answers
98 views

Article layout override in J!4

I'm starting to worry about updating my Joomla! 3 to Joomla! 4 (4.0.6 at the time of posting this). In Joomla!, 3 I used a lot the functionality that allows to create article layout overrides by ...
2 votes
2 answers
1k views

Is it possible to override js scripts?

I'm using a layout override to modify the cart module for Virtuemart, but the ajax request deletes part of my code when it updates. Because of this, I would like to change not only the template, but ...
0 votes
1 answer
175 views

Layout override for repeatable subform custom field

I am trying to apply custom field override to my article and some of the fields I am trying to access are inside repeatable and non-repeatable subforms. Please how do I access and display subform ...
1 vote
1 answer
34 views

What is the recommended way to reproducibly override an administrator layout?

I need to override an administrator layout, and the override needs to be easily reproducible in different Joomla installations. Currently, we are using extensions to achieve reproducibility. However, ...
0 votes
0 answers
26 views

Display liste of items grouped by catégorie

I create a blog liste modèle category in joomla 4, need some help to customise it In ordre to display item grouped by catégorie Like Cat 0 parent |_Cat1 |_Item 1 |_Item 2 |_Cat2 |...
0 votes
1 answer
46 views

Has the way Joomla Overrides works changed?

When I create an overide in Joomla using the create override button it creates an override like this: blog_item-29-09-2021 but then Joomla complains that it wants the _item at the end like this blog-...
1 vote
2 answers
45 views

Share code between component templates

In a complex component, there will be a number of /views/viewname/tmpl/default.php (or similar) files. It is quite likely that different views will share common features. Duplicating code is generally ...
0 votes
1 answer
572 views

Template override form fields in com_user

I want to override the login page (com_users/login). I want to add new class to the 2 fields (username and password) and also if possible to change the structure from <label></label> <...
3 votes
2 answers
3k views

Layout Overrides: Intro Image Link

I have searched everywhere for this answer but I can't find it. I really like the new layout overrides in Joomla 3 but I want to be able to add a link to the intro_image.php file so that when a user ...
2 votes
1 answer
786 views

Joomla - Custom fields in Backend - Template override

I have a Joomla-site with a lot of extra-fields in custom fields area. When I edit my articles the long list of fields is quite confusing. So I thought I could be a good idea to show the custom fields ...
3 votes
2 answers
859 views

Custom Module Menu Item Link Class Css

I would like to customize a Menu module. I want to add a default CSS class to a Joomla 'my_template' to render all link menu items with a default class (<a class="link_menu"...). I know that it is ...
4 votes
1 answer
3k views

Is it possible to load a newer jQuery version?

Is it possible to override the native JHtml::_('jquery.framework') loaded by Joomla, using some line of php? I understand I could replace this line in my template. But since I am using a template ...
2 votes
2 answers
1k views

Menu item - Articles List - Filter by user

I'm very new to Joomla (version3). I have two registered users. When any registered user is logged in they can see a new menu which contains an item to show the Articles list. This works as expected....
2 votes
1 answer
155 views

Launch a module in an article override

i tried this <?php// Render modules inside this article override $doc = JFactory::getDocument(); $renderer = $doc->loadRenderer("modules"); $raw = array(“style” => "...
2 votes
1 answer
364 views

Display articles Tags in Tag View

When you click on a tag inside an article you go to com-tags view-tag, that is created by com_tags/views/tag/tmpl/default_items. This is a blog with articles with the same tag. I want there, inside ...
0 votes
1 answer
83 views

Alternative Article Layout Options

It is possible to create an alternative article layout in the folder com_content / article (of course not written with an underscore, but with hyphens it works). But when I try the same procedure ...
1 vote
2 answers
879 views

Article Alternative Layout not appearing as option

I want to create an alternative layout for an article in Joomla 2.5.16. In my template's override folder I duplicated the current template override file (default.php) and renamed to myarticle.php. But ...
0 votes
2 answers
381 views

Custom module best practices. JS inside template file or not?

I am building a custom module for Joomla. Let's call the module "mod_mygallery". Inside the module I have a the files mod_mygallery.php, helper.php and mod_mygallery.xml. And off course I also have ...
5 votes
1 answer
507 views

Tagged items blog layout

This has come up before but I don't have enough reputation to comment into the original questions. User webchun gave a great tutorial in How to show tagged items in category blog layout which works ...
2 votes
1 answer
54 views

Language Override Include Site Details

I would like to create a language override for both site and administrator. The language constant I am changing is; RSFP_REG_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY The content of this is; Hello ...
5 votes
1 answer
3k views

Adding class to content 'Read More'

I want to add a class to the Read More link found in //components/com_content/views/category/tmpl/blog_item.php I want the class to be: <a class="btn btn-primary readmore-link"> But I can't ...
0 votes
2 answers
394 views

Access repeatable subform fields and display in article override

I have been testing the following code to retrieve and output the values from a repeatable subform field with no success. JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/...
4 votes
1 answer
6k views

Creating multiple layout overrides for category blog layout

I have looked at other questions on this matter, but would like to be clear on what is the 'correct' approach to this. Example: https://stackoverflow.com/questions/13715665/joomla-override-category-...
2 votes
1 answer
358 views

Override output for repeatable custom fields

I am struggling to find a way to output the values from a repeatable field in Joomla 3.9.15. I am currently accessing the custom fields assigned to articles using the following code: JHtml::...
2 votes
2 answers
1k views

Get Category intro image in the index.php

I want to display the intro image of my categories on the category page. I have a template override for the category blog. Because of the layout, I need to place the code outside of the override - ...
2 votes
2 answers
139 views

Latest articles structured data markup

I have added microdata into every article manually and it works fine. Now I want to insert them into the latest articles module. To override the module in my template and I added: <li itemscope ...
0 votes
2 answers
77 views

How To Include Permenant Modifications To Template Without Being Knocked Out On Update

so I'm hoping to achieve something relatively simple. I need to add an external css reference to a CDN and a local customjs file reference to the head of my template file. Currently I am doing this ...
0 votes
1 answer
199 views

How to override com_users view

I would like to make a change to the username reminder page. I had assumed that this would simply be a case of creating an template override thus: /templates/mytemplate/html/com_users/remind/default....
0 votes
1 answer
69 views

How can I remove span12 from the div before the article

In the past when I did an article override I used to get: default.php default_item.php default_links.php default_child.php all of which were placed in templates/MYTEMPLATE/html/com_content/article/ ...
2 votes
1 answer
62 views

Tag Template Override - Access to Data

on the override for com_tags > tag > default.php I'm trying to add the [note] data It would seem that this > $this->item->note should work. But it doesn't Here's a short result of the <?php ...
0 votes
1 answer
764 views

Retrieve values from a custom field in Joomla 3.8

excuse for my English. I try to retrieve my value from a custom field in com_categories. I added this field by a plugin. My value is correctly saved but i don't why, i can't retrieve my value from ...
3 votes
2 answers
461 views

Get contact details from article override

I need to display the contact information of a contact on an article override (addresse, phone number...). I can get the user with : $user = JFactory::getUser(); but how can I get a user contact ...