Questions tagged [overrides]
An override is a file in the Joomla template directory that is loaded instead of the normal core Joomla file.
183
questions
0
votes
1
answer
291
views
I've missed something with how category layout override is working
I'm working on a students directory with the following structures:
Directory (parent category)
|_ 2017-2016 (child category)
|_ 2016-2015 (child category)
|_ 2015-2014 (child category)
…
In each ...
0
votes
2
answers
30
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
69
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 ...
2
votes
1
answer
303
views
Add "show all" button to BT Content Slider module
I am using Joomla 3.X. I have a module which displays three news and events at a time to see next set of news and events user has to press the next button. The name of the module is "BT Content Slider"...
1
vote
1
answer
88
views
Override order_date but query.php not working
I am looking for a solution to sort a Category-Blog by 'unpublish-date'.
What i have done so far:
created an own menu-style by copyingblog.xml, blog.php, blog-item.php and blog-links.php to my-*.* ...
0
votes
2
answers
361
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 ...
1
vote
2
answers
71
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 ...
0
votes
0
answers
14
views
Joomla 4: Is it possible to add data from a category blog override into a contact form override?
Summary: I want to pull in Joomla field and input values from a category blog and insert them into a contact form.
Background: I have created an alternative menu item based on the category blog for ...
0
votes
1
answer
60
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 ...
2
votes
1
answer
46
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.
...
3
votes
1
answer
39
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 ...
20
votes
4
answers
6k
views
How to override core classes?
Sometimes there is a need to override core classes to get more functionality or to make some core functions work in another way. Is there any way how to override core classes? If it is possible then ...
0
votes
1
answer
40
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....
0
votes
1
answer
53
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 ...
0
votes
1
answer
86
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\...
1
vote
1
answer
98
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/...
2
votes
2
answers
710
views
Any way of overriding "Error displaying the error page: Application Instantiation Error" message?
When there's an error with the Database, Joomla throws that error. It takes place so early in the execution cycle that nothing from the Joomla application is ready, so you get an ugly blank page with ...
10
votes
5
answers
683
views
How to keep overrides updated?
As many know, it is possible to override templates, views, modules, components.
The main problem is when Joomla! is updated, and the items overriden (in the template folder) get outdated.
How do I ...
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 ...
1
vote
1
answer
28
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, ...
1
vote
0
answers
93
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 ...
0
votes
1
answer
43
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-...
0
votes
2
answers
241
views
article view - com_content not triggering content plugins when article is split
I've created a template override for the article view where the intro and the full text are invoked separately.
So, instead of
<div itemprop="articleBody">
<?php echo $this->item-...
2
votes
2
answers
103
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 ...
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
199
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 ...
1
vote
2
answers
250
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 ...
2
votes
2
answers
2k
views
Joomla! 3.8 - How to hide Publishing Tab in front end
My registered users can log in to see, create and edit only their own articles. This works fine. However, when a user creates or edits an article, the "Publishing" tab appears at the top with "Content"...
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....
1
vote
1
answer
99
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 ...
3
votes
2
answers
194
views
Change priority of loading Joomla core class and custom core class overrides
I would like to know in Joomla framework, there is a way to change priority loading some Joomla core classes after using JLoader::register() method in a system plugin developed to override Joomla core ...
2
votes
2
answers
454
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&...
3
votes
2
answers
8k
views
Using custom image flags with language switcher module
I want to display my custom flags images at the language switcher module. How can I replace the default flags of the module?
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 ...
1
vote
2
answers
875
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
1
answer
100
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 ...
1
vote
1
answer
473
views
List Limit Override
Joomla 3.6.5
I have a menu item type Contacts » List Contacts in a Category. I have 150+ contacts.
I would like to override the default list limit on this page only.
Currently when the contact page ...
2
votes
0
answers
74
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 ...
3
votes
3
answers
1k
views
Hide languages from the Language Switcher
I have a question about the Joomla language switcher module. I would like to hide the option to switch to English language on the website. I can't unpublish the English language because then it says ...
2
votes
2
answers
395
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 ...
2
votes
1
answer
48
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 ...
1
vote
1
answer
82
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 ...
1
vote
2
answers
150
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 ...
4
votes
1
answer
5k
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
3
answers
434
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 ...
2
votes
0
answers
404
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....
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-...
1
vote
1
answer
66
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 ...
0
votes
2
answers
47
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 ...
3
votes
3
answers
305
views
Contacts Page 'Alphabet Bar'
Joomla 3.6.5
I would like to display an "Alphabet Bar" on my contacts page, the menu item type is List Contacts in a Category.
I have 150 contacts, and they are all in the same category. Currently ...