As of May 31, 2023, we have updated our Code of Conduct.
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 ...
FFrewin's user avatar
  • 19.6k
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/...
Rene Korss's user avatar
  • 3,208
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 ...
Sharky's user avatar
  • 9,946
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 ...
Eoin's user avatar
  • 1,879
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 ...
Rene Korss's user avatar
  • 3,208
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"...
U K A's user avatar
  • 166
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 ...
jonboy's user avatar
  • 3,543
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-...
fruppel's user avatar
  • 3,723
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/...
webchun's user avatar
  • 2,398
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->...
Miha's user avatar
  • 71
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/...
lars k.'s user avatar
  • 368
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 ...
Lodder's user avatar
  • 26.8k
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->...
COBIZ webdevelopment's user avatar
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 ...
Bakual's user avatar
  • 5,537
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.
Nagarjun's user avatar
  • 2,981
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/...
FFrewin's user avatar
  • 19.6k
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 ...
Anibal's user avatar
  • 7,415
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&...
johanpw's user avatar
  • 13.3k
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....
FFrewin's user avatar
  • 19.6k
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 ...
Lodder's user avatar
  • 26.8k
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 ...
mickmackusa's user avatar
  • 4,761
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 ...
Lodder's user avatar
  • 26.8k
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 ...
Chinecherem Kalu's user avatar
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 ...
Weeblr's user avatar
  • 51
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 ...
akame's user avatar
  • 231
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 ...
Woluweb's user avatar
  • 21
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 ...
pippo8765's user avatar
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('...
Artur Stępień's user avatar
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 : ...
Pierre-André Vullioud's user avatar
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" ...
JProof's user avatar
  • 196

Only top scored, non community-wiki answers of a minimum length are eligible