8
votes
Accepted
Is it possible to load a newer jQuery version?
Or does Joomla really need the 1.x version?
Joomla itself may work mostly fine with newer jQuery versions. The reason it ships with such an old version is compatibility for 3rd party extensions.
So ...
6
votes
Accepted
How do I override a Joomla XML?
I bow down to @Lodder experience and assume you cannot overcome this issue by overriding the XML. However, you still have two options:
Either edit the original XML file
Although, there may be reasons ...
4
votes
Accepted
Image not found in html override
You may get an PHP error or warning. That would explain why you see the menu without styling. You should enable error reporting on your server to see these errors/warnings.
What is the value of $this-...
4
votes
How do I increment the item variable by one in the category layout
You can't create two cells the same time within a foreach loop. Change your code as below,
<?php if (!empty($this->intro_items)) : ?>
<table cellpadding="0" cellspacing="0" width="600"...
4
votes
Accepted
Override blog category location
All you need is just copying these files :
.../components/com_content/views/category/tmpl/blog_children.php
.../components/com_content/views/category/tmpl/blog_item.php
.../components/com_content/...
3
votes
How do I get an unordered list of article tags in category blog view?
Try the following code and see if it gives you the output you want:
<ul>
<?php foreach ($this->item->tags->itemTags as $tag) :
echo "<li>" . $tag->title . "</li&...
3
votes
Accepted
How to override helper file in template?
If the Helper Class is loaded in a dynamic way, checking if it's already loaded, YES. You can override it.
Not with a HTML overrides, but with a System Plugin. You can create a System plugin, loading ...
3
votes
Accepted
How to add a language pack (or language specific string overrides) to a template?
There are a couple of ways to deal with this.
1. Create a German language ini file for your template.
a. Go to languages folder -> EN-GB
b. Spot your template's EN-GB language file: e.g. en-GB....
3
votes
Get contact details from article override
You will firstly need to retrieve the user ID like so:
$id = JFactory::getUser()->id;
Then get the array of profile data, like so:
$profile = JUserHelper::getProfile($id)->profile;
You can ...
3
votes
Accepted
Latest articles structured data markup
I would have preferred to just suggest some touch ups to your snippet, but there is too much for me to address in your answer as a comment and I'd rather explain fully. Instead, I'll post this new ...
3
votes
Launch a module in an article override
The $params variable probably already exists in the override. Try using a different name...such as $moduleParams = array('style' => 'xhtml');
Alsi, note that the title most likely isn't appearing ...
3
votes
Layout override for repeatable subform custom field
This helped me to solve my problem...
<?php $fieldX = json_decode($this->item->jcfields[X]->rawvalue, true); ?>
where X is the Id of the subform native field
A, B, C is the respective ...
2
votes
How to automatically override template for a list of articles under a specific category?
Just a little update on this : since Joomla 3.8, one can directly choose the Layout in the Menu Item > Articles > Blog
That menu item has to be Published of course, but it can be Hidden (also an ...
2
votes
How to override layout files properly
Just stumbled upon this; the top answer is not correct, and the workaround offered is not needed. As they were posted a long time ago, information was probably not well known at the time.
It is the ...
2
votes
Article Alternative Layout not appearing as option
I fell into the trap of putting an underscore in my override file name. This is not allowed (https://docs.joomla.org/Layout_Overrides_in_Joomla#Module_Alternative_Layouts), and if you do it, your ...
2
votes
How to handle JImage with missing image file
You have a few options, but the easiest solution would be to run an ifexists on the src prior to running the jimage. I.e:
If (JFile::exists($src)) {
//Run jimage here
}
Alternatively you could add ...
2
votes
Overriding a class by custom plugin
have a look in the next snippets. It works clearly
plugins/system/comoverride/comoverride.xml
<?xml version="1.0" encoding="utf-8"?>
<extension version="3.4" type="plugin" group="system" ...
2
votes
Accepted
How to use custom logo markup with Helix framework templates?
First of all update at least to Joomla 2.5.28 and apply the required patches.
More info here:
https://www.joomla.org/announcements/release-news/5643-joomla-3-4-7.html
https://docs.joomla.org/...
2
votes
Is it possible to override js scripts?
Sometimes the author of your component will provide a way to do such an override, so check the documentation first. If that is not possible, brute force works:
I recently solved this problem for ...
2
votes
Accepted
Is it possible to override js scripts?
Yes, and no...
Let's start with the "no" - The Joomla core devs have created a way to inject scripts, but no (API) way to remove them.
And, "Yes" , but it's complicated....
You'll need to create a ...
2
votes
Tag List Template Global Setting is Ignored
I just asked Google 'joomla tag list override' and it told me: http://forum.joomla.org/viewtopic.php?f=706&t=854545
Edit - Update 1:
Copy components/com_tags/views/tag/tmpl/default.php and rename ...
2
votes
Fatal Error in JModuleHelper
This is one funny problem.
It seems that Joomla includes code from module template overrides in a manner that certain variable names do affect the core JModuleHelper renderModule function.
All you ...
2
votes
Accepted
How to remove/hide "Help" button from the admin toolbar?
First create a custom.css file for the ISIS template, then in this file paste the following:
div#toolbar-help.btn-wrapper {
display:none;
}
Clear caches and it should be hidden.
Update
To sum up ...
2
votes
Accepted
How to override an administrator template file that's included on the frontend?
Overrides work based on the way layout files are called.
If it is hardcoded with an include, then it is not possible to override it in clean way.
I guess that at some level you could override the ...
2
votes
How to edit the html code of a custom footer module template override
Your screenshot makes no sense, that's not the right place to override a module.
The Joomla footer module (modules\mod_footer) is a simple module that basically outputs some lines of text, and if you ...
2
votes
Get Category intro image in the index.php
Knowing a tiny bit about the joomla request-reponse lifecycle will help here. Joomla runs in the following order:
1. bootstrap the application
2. router
3. component (including your own layout ...
2
votes
Get parent category tags in template override
I did not remember how to get the parent category of article item, but to get the tags for current category you can try to use this code:
$categoryTags = new JHelperTags;
$categoryTags->...
2
votes
How to add a language pack (or language specific string overrides) to a template?
So, in my case it was that the strings were hard-coded into the template through the inclusion of a single language pack in the template language folder for English. What I did was to create my own ...
2
votes
Tagged items blog layout
This is now a core feature in Joomla 3.8, i.e. filtering articles category blog layout with tags.
2
votes
Override Global CSS within Article
There are a lot of resources in this site about overriding CSS.
Depending on your template and overall site/page configuration, you might be able to just do this by using a unique css selector that ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
template-override × 137joomla-3.x × 47
overrides × 37
templates × 21
module × 13
layout × 13
articles × 12
css × 8
custom-field × 8
module-display × 8
com-content × 8
administrator × 7
tags × 7
component × 6
joomla-3.4 × 6
joomla-4.x × 6
php × 5
joomla-3.5 × 5
category × 5
images × 5
category-blog × 5
joomla-2.5 × 4
joomla-3.3.x × 4
development × 3
user × 3