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
1 answer
19 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....
user avatar
  • 81
1 vote
0 answers
14 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 ...
user avatar
0 votes
1 answer
36 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 ...
user avatar
1 vote
1 answer
25 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, ...
user avatar
0 votes
0 answers
25 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 |...
user avatar
0 votes
1 answer
41 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-...
user avatar
  • 1,829
0 votes
1 answer
41 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/...
user avatar
1 vote
2 answers
28 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 ...
user avatar
  • 113
0 votes
1 answer
60 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&...
user avatar
  • 101
2 votes
1 answer
56 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” => "...
user avatar
  • 21
1 vote
1 answer
204 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 ...
user avatar
  • 319
0 votes
1 answer
47 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 ...
user avatar
  • 35
0 votes
2 answers
243 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 ...
user avatar
  • 213
2 votes
1 answer
41 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 ...
user avatar
  • 3,501
0 votes
2 answers
224 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/...
user avatar
2 votes
1 answer
262 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::...
user avatar
2 votes
0 answers
343 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....
user avatar
  • 21
4 votes
1 answer
2k 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 ...
user avatar
  • 213
2 votes
2 answers
114 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 ...
user avatar
  • 85
0 votes
1 answer
389 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> <...
user avatar
  • 2,388
1 vote
1 answer
637 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 ...
user avatar
0 votes
2 answers
76 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 ...
user avatar
  • 75
0 votes
1 answer
101 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....
user avatar
0 votes
1 answer
711 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 ...
user avatar
  • 13
1 vote
1 answer
319 views

Override helper.php on mod_related_item

I want to get the related items of an article order by created and only show the related items that have the same catid. To accomplish that i must change the helper.php code and add this code: $...
user avatar
  • 113
2 votes
1 answer
54 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 ...
user avatar
0 votes
2 answers
323 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 ...
user avatar
  • 1
3 votes
2 answers
408 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 ...
user avatar
  • 1,371
0 votes
1 answer
67 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/ ...
user avatar
  • 1,829
0 votes
3 answers
392 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 ...
user avatar
  • 1
0 votes
1 answer
240 views

Joomla category blog is displaying only a number of leading articles in the 'blog' section, and putting all other leading articles outside of it

Okay so this has gotten me stuck for more than i'd like to admit. I made a joomla ovverride for blogs just to test it out. I see the code below: <?php if (!empty($this->lead_items)) : ?> ...
user avatar
0 votes
1 answer
145 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 ...
user avatar
  • 101
1 vote
1 answer
49 views

Where to place the file for user registration form

I'm creating a template override for the Joomla3.8 registration form. Where should I upload the default.php file to? This is where I've tried, without luck: /templates/yootheme/html/com_users/...
user avatar
0 votes
1 answer
339 views

Alternative layout for single article menu item possible?

I created an alternative layout for an article (in templates/mytemplate/html/com_content/article/newlayout.php). I can see it in the Layout option of the Article => OK Actually, I would prefer to set ...
user avatar
2 votes
2 answers
941 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....
user avatar
  • 161
2 votes
1 answer
119 views

Mod articles archived override not working?

I am using Joomla 3.8.0, and I have made an override for the mod_articles_archived module. For some reason it doesnt read the override? I have the following map structure now: templates/mytemplate/...
user avatar
  • 23
1 vote
1 answer
176 views

Joomla set Template Alternative Layout via link, is it possible?

I came across an strange behavior and I am trying to find out if I can solve this by setting the layout to be used via the link to the category. Here is what happened. I have a template override for ...
user avatar
  • 23
1 vote
1 answer
2k views

Active menu items on page scroll with fullpage.js

I'm using fullpage.js with joomla 3.7.5. I try to put class active on my menu item, when I scroll to the specific section. According to the docs, to let fullPage.js know about the menu, I need to ...
user avatar
  • 43
2 votes
1 answer
767 views

Adding a title attribute on the image tag - How to customize article's full image layout?

I want the full image of an article to use the value of an alt attribute in a title attribute, too. I have been searching everywhere and just can't find the correct file. The file which provides the ...
user avatar
  • 121
1 vote
1 answer
961 views

pass parameters to a wrapper url - Joomla3.x

I have a requirement to pass parameters from the joomla calling URL to the wrapper iframe URL. I had a look around to see if I could do this and found this thread https://stackoverflow.com/questions/...
user avatar
0 votes
0 answers
348 views

How to modify the display of custom fields of user's profile

I've added some custom fields to Users. There's a menu entry for User Profile in the Front End. I'd like to change its display i.e. see the custom fields before the Basic Settings. I didn't find a way ...
user avatar
  • 248
1 vote
2 answers
987 views

Override Global CSS within Article

I have one article, where I want to apply different styling to it than what the global is. I tried to add it like so <link rel="stylesheet" type="text/css" href="https:"/ tag at the top of my ...
user avatar
1 vote
1 answer
957 views

Create thumbnails with custom field images

I have articles with custom fields type media. I need to create thumbnails from these images with a fixed widths (1200px, 700px, 450px and 250px) to display with the picture element and on different ...
user avatar
  • 1,371
1 vote
2 answers
423 views

Can I assign a Gantry 5 outline to a category

The site I am working with has a lot of subscriber-only content which is accessed through a set of categories associated with permission groups. Items that are subscriber-only don't currently appear ...
user avatar
  • 239
1 vote
1 answer
101 views

Call Joomla Native Language Title

The site uses a custom mod_menu. How do you call the native language title? <?php $lang = JFactory::getLanguage(); $lang_name = $lang->getName(); ?> <?php echo $lang_name;?...
user avatar
  • 505
5 votes
1 answer
496 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 ...
user avatar
3 votes
2 answers
405 views

How to add a language pack (or language specific string overrides) to a template?

So, I am in the process of adding a second content language to my joomla site and I'm running into an issue. I have successfully added my second language (German) and have rebuilt my site with the ...
user avatar
  • 537
0 votes
1 answer
343 views

How to translate labels for contact page on multi-language site?

I'm working on a multi-lingual joomla 3.6 site and I'm running into a problem with the contact page. The issue I'm running into is how to internationalize the labels on the contact page corresponding ...
user avatar
  • 537
2 votes
1 answer
27 views

Show content from all users for a given Category [closed]

I'd like to create a layout that lists the article content from a chosen category.and subcategory for specific users. I've been looking into overriding the blog layout but I'm not familiar with what ...
user avatar
  • 167
2 votes
1 answer
86 views

Unintentional override to Sidebar B module made it disappear. How to restore?

I was in the Template section, (as a novice, in the wrong area) trying to change the appearance of a module. I clicked on Create Overrides tab, then in the third column Layouts list, clicked "sidebar ...
user avatar
  • 21