10
votes
Accepted
How to create a category blog layout with all articles shown in full?
About Joomla Intro & Full Article Text
Well, here is how this works:
When creating an article, you have the option to insert a "Read More" in your article.
What happens when you insert the Read ...
9
votes
Accepted
Adding class to content 'Read More'
JLayoutHelper renders layouts originally from /layouts folder.
First parameter is basically path to file. Just replace . with / in your mind :).
So readmore.php is located at
/layouts/joomla/...
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 ...
5
votes
Accepted
Can't see alternative layout once i add xml file
Alternative layouts
Docs says:
As with module layouts, the file must not be named the same as the core file and must not include underscores in the name. Additionally, there should not be an XML ...
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
Change menu item title according to login status
If I am understanding your question you want to hide/change the menu item depending on whether or not a person is logged in or not?
OK this is how I managed to how to hide content from guest users or ...
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
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 to add article image to module mod_article_categories?
Solved! I put the code:
<?php $images = json_decode($item->images); ?>
<img class="image_intro" src="<?php echo $images->image_intro; ?>" alt="<?php echo $images->...
3
votes
How to add article image to module mod_article_categories?
Yep, I would also do the template override.
Fetch the file components/com_content/views/categories/tmpl/default_items.php and copy it to <your_template>/html/com_content/categories/...
3
votes
Accepted
Template Override for Admin Template ISIS
You don't need to perform an override for this, it's a simple parameter change.
Go to:
Joomla backend >> Extensions >> Template Manager >> Isis
Then go to the Advanced tab and you will see 2 ...
3
votes
How to automatically override template for a list of articles under a specific category?
For an article override for items only of a specific category,
I guess you could do something like this in /your_template/html/com_content/article/default.php
if ($this->catid==2) {
$this->...
3
votes
How to automatically override template for a list of articles under a specific category?
I don't think you can do that automatically within Joomla itself.
I would just create a new layout (set as default one globally) which checks the category id of the loaded article and then decides if ...
3
votes
How to automatically override template for a list of articles under a specific category?
Go to Content -> Category Manager
Edit your category
Go to Options tab
Assign your layout in "Alternative Layout" option.
3
votes
Accepted
Joomla! - Give Blog Categories Classes
To add a special "category" class to the articles of the featured articles menu item, you need to create a template override.
Simply, copy the : default.php file, located in:
components/com_content/...
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
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 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 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 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 create a category blog layout with all articles shown in full?
I'd say none of the above completely solves the general situation when you have article where you want to have a "Read more..." link / button. So, hiding "Read more" (within menu ...
2
votes
Accepted
How to get currently opened article vote / rating value
Please avoid pushing pure queries. Do it like this:
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->
select('rating_sum')->
from('#__content_rating')->
where('...
2
votes
Forcing Joomla module to be displayed in specific layout override
More info about layout override : https://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
If you want to change how the mod_menu Module is displayed, then you should copy :
...
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" ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
template-override × 133joomla-3.x × 46
overrides × 37
templates × 21
layout × 13
module × 12
articles × 12
css × 8
custom-field × 8
module-display × 8
com-content × 8
administrator × 7
tags × 7
component × 6
joomla-3.4 × 6
joomla-3.5 × 5
category × 5
images × 5
category-blog × 5
php × 4
joomla-2.5 × 4
joomla-3.3.x × 4
joomla-4.x × 4
development × 3
user × 3