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
0 answers
6 views

Error 0 Call to a member function get() on null on $db query in com_content category blog.php override

For a J5 site, using Cassiopeia, I have created (on a test site) a View using SQL in phpMyAdmin (which uses mySQL) that selects * from the content table linked by content.id and fields_values.item_id ...
Gillian's user avatar
  • 411
0 votes
1 answer
18 views

Move title before image in Category display (in Blog mode) of Articles

Created a new website using Joomla v4 and its Cassiopeia template (latest version). The Articles displayed on the Category pages (in Blog mode) now show the image first and then the title. I'd like to ...
Adrian's user avatar
  • 3
0 votes
1 answer
11 views

Tag page with blog layout

I want to create a menu item for a tag that shows the articles as in category blog layout. After, I would like to insert tags in the article info block. Is it possible in joomla 4 and 5? If yes, how ...
Deilas's user avatar
  • 1
0 votes
0 answers
49 views

Override com_content views

I have created the following override files in my Joomla 4 template override folder: /templates/chat/html/com_content/category/needinghomes.xml /templates/chat/html/com_content/category/needinghomes....
RustyJoomla's user avatar
  • 2,078
0 votes
1 answer
181 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
  • 139
0 votes
1 answer
66 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
33 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
  • 191
0 votes
3 answers
373 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
233 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
98 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
105 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
59 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
  • 83
0 votes
1 answer
65 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
  • 403
0 votes
1 answer
120 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
121 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
281 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
33 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
136 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
  • 403
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,909
2 votes
1 answer
298 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,909
1 vote
2 answers
387 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
123 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
660 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,909
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
522 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,603
1 vote
1 answer
116 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
77 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
189 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
1 answer
502 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
599 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
108 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 ...
Vivek Narula's user avatar
1 vote
1 answer
81 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
51 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
116 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
73 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
39 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
62 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
264 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.9k
0 votes
1 answer
199 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,909
0 votes
3 answers
76 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
172 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
373 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
813 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
146 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,791
3 votes
2 answers
268 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
176 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
108 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
376 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