Questions tagged [overrides]

An override is a file in the Joomla template directory that is loaded instead of the normal core Joomla file.

Filter by
Sorted by
Tagged with
0 votes
1 answer
119 views

Overwrite Site Model getListQuery

I have a System Plugin to filter Joomla 4 Category Blog Articles by Custom Fields. The Plugin basically overrides the core content ArticlesModel by loading it in the onAfterRoute Event like this: ...
cappu's user avatar
  • 115
0 votes
1 answer
38 views

Force 404 error in J4 when php file called

this is related to my previous question regarding [native J4 redirects][1]. I'm looking at a workaround but my previous question is still valid. I'm using [Jbusiness][2] and where previously we could ...
Dtorr1981's user avatar
  • 532
0 votes
0 answers
31 views

Article slideshow

I wanted to use Bootstrap 5 carousel/sildeshow on my Joomla CMS v4. I recently updated to Joomla 4 and the previous slideshow component isnt compatible so I am left with a load of articles which ...
j00m's user avatar
  • 171
0 votes
2 answers
167 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?
DeesreX's user avatar
  • 87
1 vote
2 answers
139 views

Edit category list to show items from a category and its subcategories

I'm trying to modify the Category List of the com_content component via override, so that it shows both the articles of the selected category and its subcategories. I tried to edit the ...
Nintendomi's user avatar
0 votes
1 answer
78 views

Override login module to initiate SSO redirect

I have SSO working with an external IdP on my Joomla4 site. However, to initiate a login by a user, they have to click a button/link to be directed to the IdP login form. When I set the permissions ...
Lance's user avatar
  • 533
2 votes
1 answer
82 views

override for /layouts/joomla/content/full_image.php // alt attributes for images in Joomla 4

I need to make some adjustments to /layouts/joomla/content/full_image.php in Joomla 4.1.5. For all (full) article images without an alt attribute the alt attribute should be the title of the article. ...
mib1980's user avatar
  • 81
3 votes
1 answer
46 views

Adding a new view to built in component (com_tags)

What is the best way of adding a new view to an existing (built-in or 3rd party) component? In the particular case I want to add a better tag view to com_tags. The view in com_tags just lists the ...
RogerCO's user avatar
  • 73
0 votes
1 answer
55 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....
maidan's user avatar
  • 383
0 votes
1 answer
88 views

Is it possible to make it so that authors can edit their own published articles creating a new unpublished version of them?

Related: Is it possible to remove the "new article" button from all sections in a Joomla website? Worflows in Joomla 4 are great, but there is a feature I'm not sure they have: letting ...
Vincenzo Oliva's user avatar
0 votes
1 answer
111 views

Override a method of the Indexer class (com_finder) using a plugin

I'm trying to override a Joomla method (toggleTables in the Indexer class of the com_finder) using a plugin, but it doesn't work. Where am I going wrong? use Joomla\CMS\Plugin\CMSPlugin; use Joomla\...
Nintendomi's user avatar
1 vote
1 answer
201 views

Change the default articles list ordering overriding the model

I need to change the default ordering of the articles list in the administrator Articles page. To do this I probably would have to edit the populateState() method in administrator/components/...
Nintendomi's user avatar
1 vote
1 answer
30 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, ...
ThatsJustCheesy's user avatar
1 vote
0 answers
123 views

Custom layout path for fields

I have a central library \libraries\mylib\ containing some models, tables, helpers and stuff all of my components use. I also have a folder there containing some custom fields i use. It is simple to ...
maidan's user avatar
  • 383
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-...
Eoin's user avatar
  • 1,889
2 votes
1 answer
250 views

How can I add height and width attributes to an image in a menu?

Google is complaining that there is no height and width set on the HTML properties of some images in a menu. It's worrying about cumulative layout shift. The sizing is all done in CSS, but I want to ...
Eoin's user avatar
  • 1,889
1 vote
2 answers
336 views

Modify CSS class on specific pages

I would like to modify CSS styling to some of my pages, and override the default template styling. By default, I have this class (.article-intro-image) on my template css with some parameters (for ...
Vicent G.'s user avatar
2 votes
2 answers
107 views

Reroute all emails to developer / debug address

I am trying to intercept outgoing emails from joomla and reroute them to my email address for development and testing. Ideally I could set up a toggle under Global Configuration > Server > Email ...
Joseph Turner's user avatar
2 votes
2 answers
599 views

Module title is not showing despite setting module title to yes

I've created and overridden a mod_feed targeting the Joomla! Security News Feed. https://dev.joomlalondon.co.uk/index.php?option=com_content&view=category&layout=g5_hydrogen:blog-news--bbc&...
Eoin's user avatar
  • 1,889
2 votes
0 answers
81 views

Override 3d party extension plugin method

I found some errors in the code of a third-party system plugin, it is assumed that the developer will release updates and fix them, but for today I would like to fix them myself, for this I made my ...
Dmitry Zar's user avatar
2 votes
2 answers
467 views

How do I add async attribute for scripts?

I would like to add async to script tags coming from here <jdoc:include type="head" />. I have done some research and I found a few solutions, however those are for custom scripts. I ...
Thiago Guimarães's user avatar
2 votes
1 answer
52 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 ...
jonboy's user avatar
  • 3,563
1 vote
1 answer
97 views

Overriding RssRenderer via plugin

I have some issues with overriding the RssRenderer found in /libraries/Src/Document/Renderer/Feed/RssRenderer.php. In the past I have used a plugin to override a select html see topic here: Override ...
Kuubs's user avatar
  • 345
0 votes
1 answer
76 views

How to implement language-specific tags in select tags list from editing?

I have observed in Joomla (v3.9.16 and in older version too) a strange behavior (maybe it is right, but I don't understand it). When we have fully installed and configured a multi-language site, if ...
Jonathan Bellieri's user avatar
1 vote
2 answers
170 views

Override JHtml core function select.radiolist

I want to override the output of the select radiolist. I can hack the core, but I'm not really fond of doing that in relation to updates. So i checked out a system plugin to override the JHTMLselect ...
Kuubs's user avatar
  • 345
2 votes
0 answers
457 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....
pitcock's user avatar
  • 21
2 votes
3 answers
502 views

DPCalendar custom field inside module

I am creating an override in DP calendar and would like to display a custom field created in DP Calendar inside the module. The field type is 'URL' thus I would like it to be a clickable link. I have ...
Dtorr1981's user avatar
  • 532
0 votes
1 answer
104 views

Send email upon publish/unpublish of an item in custom component

I have created a hello world component based upon this documentation https://docs.joomla.org/Special:MyLanguage/J3.2:Developing_an_MVC_Component/ I want to send a notification to users if an item's ...
Zack's user avatar
  • 101
1 vote
1 answer
70 views

Joomla Contact Component - can I change "Miscellaneous Information" to "Bio"?

I don't want my board members bio's to be called miscellaneous information. To avoid that I'm putting bio's in the address field! This is not a good permanent solution. I would like to know if there ...
Edfromzi's user avatar
0 votes
2 answers
49 views

How to tell if the file can be overridden?

How do we alter the output of a Plugin that is installed in a Component (Example: "ABC" plugin installed in a Component "ABCD")? I understand that the core files can't be overridden. But how do we ...
user2976317's user avatar
1 vote
1 answer
108 views

How to override a link's href attribute in mod_menu?

Better title might be 'How to set the menuItem object 'link' property?' I've used menu overrides for a variety of purposes such as changing layout and styling etc but would now like to change the ...
Xander's user avatar
  • 133
1 vote
0 answers
69 views

List every contact including the ones in subcategories

I need a phone book with all people of the organization, but also need a separated phone book for each department. We have a "Main" category, with a few subcategories. I cannot duplicate the personal ...
drilippi's user avatar
0 votes
0 answers
37 views

Tagged blog layout with readmore

I implemented the solution that enables a blog layout for tagged items, as described here: How to show tagged items in category blog layout What I miss is the Read More button. How do I implement ...
Johan Jonker's user avatar
1 vote
2 answers
60 views

Accented letters are printed in bold type

For some reason accented letters are printed in bold type. An image is worth in thousand words: The page is available at: http://elacebron.dipucuenca.es/index.php/k2/contact I've been trying for ...
MirlvsMaximvs's user avatar
2 votes
1 answer
238 views

Override JHtml (HTMLHelper) class methods

I'm developing a custom Joomla template and have unset a lot of the core dependencies, such as jQuery and Bootstrap in the template's index.php. The problem now is that the core extensions call some ...
Lodder's user avatar
  • 26.8k
0 votes
1 answer
185 views

Why isn't my alternate layout override showing up for the menu item?

I have created an override for com_content for the category list. It is stored in /templates/MYTEMPLATE/html/com_content/category It is saved as a new name, copying the Joomla! override structure ...
Eoin's user avatar
  • 1,889
0 votes
3 answers
73 views

(Module override/PHP) Checking if a content-item has an image otherwise display a placeholder

I am customising a Joomla module (Override) and it does not seem to accommodate if an image is not selected (just shows a broken image symbol). What I'd like to do is check if there is an image and ...
Dtorr1981's user avatar
  • 532
0 votes
1 answer
156 views

How to override bootstrap css?

I would like to use the tooltip function of Bootstrap 3 on my website (www.fischer-club.ch). I tried to override the margin-top value in my custom.css to better place the tooltip: .tooltip.top { ...
Yves Parrat's user avatar
1 vote
1 answer
337 views

Using Link A instead of the title link

I am using the module Articles - Newsflash to show a category of mine, which works just as intended. Now I can see all intro images of the selected articles and also some corresponding text. ...
Rongum's user avatar
  • 31
2 votes
1 answer
2k views

How to change date format in JHTML::calendar to d-m-Y?

In a form I have a date/time-field. It works correctly, but the format of the date isn't right -- I require Dutch date notation (d-m-Y). Instead of day-month-year it displays and saves it as year-...
YolkNet's user avatar
  • 81
0 votes
1 answer
773 views

Display Article custom fields in table

I am trying to customise the way the article custom fields are displayed on the category blog page. At present they are displayed in a vertical list: What I would like to do is display these in a ...
Dtorr1981's user avatar
  • 532
5 votes
1 answer
145 views

How to adjust search keyword sanitization settings as language override?

I am working on some custom search plugins and I have a 2-part question regarding the file administrator/components/com_search/helpers/search.php. I want to adjust the sanitization settings without ...
mickmackusa's user avatar
  • 4,781
3 votes
2 answers
257 views

How to create two different template overrides for the start page and featured articles?

I'm new to Joomla and currently creating a template for my website. Unfortunately I'm facing a problem which I did not found out how to solve. I wanted a front page which is different from the rest ...
Drudge's user avatar
  • 131
0 votes
3 answers
171 views

Joomla pagebreak causing 404 error in custom pagebreak coding. Seeking a solution

I wrote a function in an article override to search a folder for images and create a pagebreak behavior per image in an article. All works fine except for a 404 error being returned for each ...
Nadal's user avatar
  • 188
1 vote
1 answer
105 views

How to override language filter plugin?

I'd like to tweak my language filter plugin a bit, and if possible, I'd like to do that as an override. I know how to override some features in Joomla, but I'm not sure what to do in case of a system ...
louisv's user avatar
  • 11
1 vote
1 answer
358 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: $...
JoseSilva's user avatar
  • 113
2 votes
1 answer
274 views

Export language overrides

I need to export the language overrides which i set in the joomla 3.8 admin. I couldn't find any option at extensions->languages->overrides and i also couldn't find the overrides inside the database. ...
rhauger's user avatar
  • 123
0 votes
1 answer
54 views

How to get Google Analytics using user provided web id? [closed]

I am working on a project similar to filippa.com. In the process of registering a website, the user will input her/his web id, something like XX-XXXX-X. I need to implement a plugin in my item view ...
Amin Bakhtiari Far's user avatar
0 votes
1 answer
269 views

How can you call custom fields in an override for com_contacts

In com_content I can call my fields one by one as follows <?php echo $this->item->jcfields[3]->value; ?> The same code does not work in com_contacts. How can I call the fields in a ...
Eoin's user avatar
  • 1,889
0 votes
2 answers
382 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 ...
dg82's user avatar
  • 1