Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [template-override]

A Template Override is a file in your Joomla template directory that is loaded instead of the normal core Joomla file. This is done in order to change the layout or functions of certain parts of Joomla, without changing the core files, because these are updated and overwritten whenever Joomla is updated.

6
votes
6answers
763 views

How to automatically override template for a list of articles under a specific category?

I have created an override for my news category (which works perfectly) and another article override for my news articles as follows // Category Override my_template/html/com_content/category/news....
6
votes
2answers
661 views

Developing Outside the CMS

I have a question, I have an already constructed site, we use Joomla for the CMS, and a theme from RocketTheme called "Diametric". We are looking to construct a page and it's styling is going to fall ...
6
votes
1answer
247 views

Creating a Global Parameter for Modules

Is it possible to create a Global Configuration option for all the modules? So for example, Every Module has a Title field, If i wanted to add a "Module Tag Line" field to every module? In reality ...
6
votes
1answer
668 views

Can't see alternative layout once i add xml file

I create a file "product.php" in "\templates\beez3\html\com_content\category" I can see it in "alternative layout option" but i can't see it in "menu item type". Then i create a "product.xml" file. ...
5
votes
3answers
3k views

How to add article image to module mod_article_categories?

I am using Articles - Categories module in my Joomla website (my custom template) and it works great, meaning that it lists all articles with intro text from the categories I want. But it does not ...
5
votes
2answers
1k views

Change menu item title according to login status

I am using T3 Framework blank template. In the megamenu I have inserted the login form as a submenu, so it shows up when the user hovers over the menu item. I would like to change the menu item title ...
5
votes
1answer
721 views

Joomla menu module - display levels in separate panels

I'm trying to make a Joomla menu module to behave like the menu from this site: http://wachtel.de/backoefen/etagenoefen.html. What's important is that every menu level is displayed in single panel - ...
5
votes
3answers
3k views

How to add category image to module mod_article_categories

How can I add the category image to the categories listed using the J3.3.1 core module mod_articles_categories? I think I have to create a module override in template/my-template//html/...
5
votes
1answer
265 views

Tagged items blog layout

This has come up before but I don't have enough reputation to comment into the original questions. User webchun gave a great tutorial in How to show tagged items in category blog layout which works ...
5
votes
1answer
476 views

Creating search for a category page

I want to create a search module in joomla for a category page. Default module such as "Search" or "Smart Search" gives result on their own page rather in the same page from where it is requested. ...
4
votes
3answers
5k views

How to get parent category title for Tag view

I want to get my current article's category and parent category link into my page. I get the category via the following code: $db = JFactory::getDbo(); $id = $item->core_catid; $db->setQuery("...
4
votes
1answer
2k views

Adding class to content 'Read More'

I want to add a class to the Read More link found in //components/com_content/views/category/tmpl/blog_item.php I want the class to be: <a class="btn btn-primary readmore-link"> But I can't ...
4
votes
2answers
218 views

How to add a language pack (or language specific string overrides) to a template?

So, I am in the process of adding a second content language to my joomla site and I'm running into an issue. I have successfully added my second language (German) and have rebuilt my site with the ...
4
votes
1answer
947 views

Layouts folder override (Read More)

Is there a way to override files form the layouts/joomla directory? I need to change the look of the Read More button. Found its php in layouts/joomla/content/readmore.php. Could I copy this file to ...
4
votes
3answers
1k views

Joomla 3.4 Admin Template Override

I want to change the header in the default admin template Isis. This is the output now. <header class="header"> <div class="container-logo"> <img src="administrator/...
4
votes
1answer
2k views

How can I completely and safely remove the subject field in com_contact?

I work mainly in overrides as much as possible, so am using /templates/.../html/com_contact/contact/default_form.php I know I can just remove the code that shows the subject line: <div class="...
4
votes
1answer
183 views

Create an Override for reset.php

I am trying to override /components/com_users/models/reset.php I have tried numerous pathways to, but cannot get the site to look at it. Have tried: /templates/TEMPLATE_NAME/html/com_users/reset....
4
votes
1answer
73 views

Inject HTML overrides in admin Template

I would like to create some html overrides for a given Admin Template (isis). So I could throw in all the code into the template's directory, but I guess an update will wipe out all my changes, so ...
4
votes
1answer
762 views

Link to content article with specific layout

I'm trying to link to a content article and force a specific layout override to be used in the display, however I'm having some troubles. I've tried the following: JRoute::_("index.php?option=...
3
votes
5answers
14k views

How to create a category blog layout with all articles shown in full?

Hello Joomla community, I'd like to create a category blog layout where all articles are shown with their entire content. I.e. without having the article shortened at the 'read more' position. What's ...
3
votes
3answers
2k views

How to override layout files properly

In Joomla 3.x we can use the JLayout class to override the files located in ROOT/layouts folder According to this doc http://docs.joomla.org/J3.x:JLayout_Improvements_for_Joomla! all we need to do ...
3
votes
1answer
413 views

How do I override a Joomla XML?

For example, we have a module called MOD_PR_SLIDER. Which has this file: public_html/modules/mod_pr_slider/mod_pr_service.xml I already copied that file in: public_html/templates/my_template/html/...
3
votes
1answer
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-...
3
votes
1answer
2k views

Overriding the core layout for Featured Articles Component

I am a bit of a Joomla noob, so forgive the question, but I have searched for an answer. I am looking to customize the layout of the featured articles component. However, I do not want to customize ...
3
votes
2answers
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 ...
3
votes
2answers
253 views

Parse Article Content for Template Layout

I want to create a layout (or override) that i can run a foreach loop on the div's of certain classes. Is there a method in joomla to help me? I have seen a little about php HTML DOM parser but I ...
3
votes
1answer
379 views

Adding a title attribute on the image tag - How to customize article's full image layout?

I want the full image of an article to use the value of an alt attribute in a title attribute, too. I have been searching everywhere and just can't find the correct file. The file which provides the ...
3
votes
1answer
264 views

Get parent category tags in template override

I am building a template override for the default featured blog layout. Item tags are displayed with : <?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->...
3
votes
2answers
2k views

List All Categories (com_content/views/categories) alternative layout not working

OK so I'm trying to create an alternative menu item layout and it doesn't seem to be working. I'm using the latest version of Joomla 2.5. What I did: created folder structure: mytemplate/html/...
2
votes
3answers
829 views

Joomla! - Give Blog Categories Classes

First off, I'm a PHP noob :/ just to get that out of the way My goal is to give each Joomla! category a class, so I can pre-style layouts for my client, and when they choose a Category, they would ...
2
votes
2answers
2k views

How to move print/email to be inline with article title for blog view?

for single article view I've moved the print/email function up to be inline with the title, instead of being located below the title in top-right corner of the content. Did this my moving the code ...
2
votes
1answer
207 views

Override blog category location

I'm new to overrides and want to change the look of the category blog that I've assigned to my menu item type. I can't find which override to create and which file to edit. It's the blog layout that ...
2
votes
2answers
195 views

Get contact details from article override

I need to display the contact information of a contact on an article override (addresse, phone number...). I can get the user with : $user = JFactory::getUser(); but how can I get a user contact ...
2
votes
2answers
584 views

Get Category intro image in the index.php

I want to display the intro image of my categories on the category page. I have a template override for the category blog. Because of the layout, I need to place the code outside of the override - in ...
2
votes
2answers
505 views

How do I get an unordered list of article tags in category blog view?

I'm working on an override for com_content category blog view and need an unordered list of article tags in blog.php. Every tag should be wrapped in an <li> <li>[tag]</li> <li&...
2
votes
2answers
99 views

How to handle JImage with missing image file

Today my website showed errors to end users on one page because an image was missing. This is an image stored in jseblod and accessed by using new JImage() in my template. Is there a guideline on how ...
2
votes
1answer
2k views

JLayout: Overriding joomla.edit.params layout only for com_content

I am looking for a way to override the joomla.edit.params layout only for the com_content, which is rendered with the: JLayoutHelper::render('joomla.edit.params', $this) on the: administrator/...
2
votes
1answer
2k views

How can I Include an article's Links in the blog intro text

I would like to include the article Links (as set in the Images and Links tab) below the intro text shown in the blog layout, above or below the 'Read more' link. I've tried including this from the ...
2
votes
2answers
384 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....
2
votes
1answer
582 views

How to remove/hide “Help” button from the admin toolbar?

How do I remove the "Help" button from the admin toolbar in Isis template? I have tried placing the following in the Isis template.css file with no luck, #toolbar-help.btnwrapper button.btn-small { ...
2
votes
1answer
29 views

Tag Template Override - Access to Data

on the override for com_tags > tag > default.php I'm trying to add the [note] data It would seem that this > $this->item->note should work. But it doesn't Here's a short result of the <?php ...
2
votes
1answer
74 views

Mod articles archived override not working?

I am using Joomla 3.8.0, and I have made an override for the mod_articles_archived module. For some reason it doesnt read the override? I have the following map structure now: templates/mytemplate/...
2
votes
1answer
64 views

Unintentional override to Sidebar B module made it disappear. How to restore?

I was in the Template section, (as a novice, in the wrong area) trying to change the appearance of a module. I clicked on Create Overrides tab, then in the third column Layouts list, clicked "sidebar ...
2
votes
2answers
451 views

Custom Module Menu Item Link Class Css

I would like to customize a Menu module. I want to add a default CSS class to a Joomla 'my_template' to render all link menu items with a default class (<a class="link_menu"...). I know that it is ...
2
votes
1answer
178 views

Use yootheme layouts on an already running joomla site

I'm using yootheme's solar on my website and I want to change it for the stage theme, I want to make my site to look just like this: http://yootheme.com/demo/joomla/stage but it's impossible since ...
2
votes
3answers
722 views

Forcing Joomla module to be displayed in specific layout override

I have a dropdown menu as main navigation of my website and I want to create an offcanvas menu that displaying the same menu items as the dropdown menu items, for responsive design purpose. Since ...
2
votes
1answer
329 views

countModules in module chrome function

I'm using grid layout and I need to calculate column width depending on amount of active modules in a position. I'm assigning the css class within my module chrome. What I was doing till now was ...
2
votes
1answer
284 views

Overriding Content Gallery Layout to Contact Gallery Layout

we have on our template the possibility to creat an Gallery View for Content / Categories. it looks like the following: so and now - i'm trying to get the same view for the contacts. In contacts ...
2
votes
1answer
2k views

Removing the space between header and nav on Protostar

I use Protosar template on Joomla. I have tried for days now and I can't figure out how to remove the space/padding/margin between header tag and nav tag. I have done everything including zeroing ...
2
votes
1answer
26 views

Show content from all users for a given Category [closed]

I'd like to create a layout that lists the article content from a chosen category.and subcategory for specific users. I've been looking into overriding the blog layout but I'm not familiar with what ...