Skip to main content
5 votes

How to use a custom layout with JForm subform fields?

Edited to add subform field type-specific answer: Having looked at it properly, attaching your own layout to the subform field type is super-easy. Create a layouts folder in the same parent ...
Bathmat's user avatar
  • 502
4 votes

Random image in an article

You have to use a more specific CSS selector in order to target only the main image, and not all images added to an article. The main article image (added through the "Images and links" tab in the ...
johanpw's user avatar
  • 13.3k
4 votes
Accepted

Category Blog - Layout if the intro image is set

If you mean the intro image that's used in intro_image layout, use the same check as in the layout: <?php $images = json_decode($this->item->images); ?> <?php if (!empty($images->...
Sharky's user avatar
  • 11.5k
3 votes
Accepted

Where do we set layout value in Joomla

The above code will try to get the layout value from request parameter "layout". If there is no request parameter found, it will use the default value which is "edit". If you want to override the ...
Nagarjun's user avatar
  • 3,001
3 votes
Accepted

How to display tag on top of article and author at the bottom

Set position of info above to keep tags in that position and make an override of com_content/views/article/tmpl/default.php with this changes: Line 76 - remove or comment this statement: echo ...
Kitase88's user avatar
  • 977
2 votes
Accepted

Menu Item - Show only a few articles

You can use the featured articles system represented with a star in content manager and use a "Featured Articles" menu item type to show only the specific articles that you have marked. Then use a ...
Kitase88's user avatar
  • 977
2 votes
Accepted

How to create one page Joomla site?

Any template should work fine with "External URL" menu options linking to appropriate IDs on the page (see example below). You can also create extra IDs in the content where needed by ...
Neil Robertson's user avatar
2 votes

Trying to repair or eliminate "Written by" author field in article view

If you want to show or hide author you dont have to hack the core files as there are predefined option in the administrator panel. Login to Administrator and click on Content article. You will find ...
Amit Ray's user avatar
  • 237
2 votes
Accepted

Random image in an article

This might not be the exact answer you are looking for, but if it is for a full website you are developing and not only for a template that you want to distribute, then the following ideas could work ...
FFrewin's user avatar
  • 19.7k
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 ...
jamesgarrett's user avatar
  • 3,299
2 votes
Accepted

How to use a custom layout with JForm subform fields?

To place a subform (Joomla! 3.6+) within another "master" form and use a custom layout: 1) In the master JForm XML file use the subform field type. <field name= "fieldname" description= "...
nimble's user avatar
  • 418
1 vote
Accepted

Change Smart Search results template layout

For most things you would nominate the template style you want to use in the menu item (see screenshot). If it's not working on a smart search item, you could try doing a duplicate style of the ...
Witchypaws's user avatar
1 vote

Show configuration forms of different plugins into a single tab

This may vary from form to form but using nested fieldsets appears to currently work in article backend form. It could break at some point though. Use the same top level fieldset name for all plugins ...
Sharky's user avatar
  • 11.5k
1 vote

How to make an adjustment on User Profile page in Community Builder

I don't use Community Builder myself so I can only give you some general tips. What you could do to find the right page to edit: create a backup of your site (e.g. using Akeeba Backup) with files + ...
pe7er's user avatar
  • 2,058
1 vote

How to show tagged items in category blog layout and adjust the photo size

In "taggedblog_items.php", there is some code that needs to be removed or commented out in order to get rid of the duplicate image (and duplicate intro text). But how you do this will ...
Brady McCain's user avatar
1 vote
Accepted

Layout for a custom component leads to a 404 Error

Normally view layouts should be placed in view layout directory. In your case it's components/com_gallery/views/gallery/tmpl
Sharky's user avatar
  • 11.5k
1 vote
Accepted

How can I have multiple layouts for a View that are available as a menu option such as &layout=xxx?

This may not be a 100% perfect approach to this, but it is the solution that I have used for years and it works with no issues. It will allow you to create individual menu items per layout as you ...
Terry Carter's user avatar
  • 1,822
1 vote
Accepted

Gantry5 framework - Where are the core particles located?

Core Gantry5 particles that do not have an override on the template level can be found at: /media/gantry5/engines/nucleus/particles/ Gantry5 is a powerful framework and allows a high level of ...
FFrewin's user avatar
  • 19.7k
1 vote

How to make a onepager?

Just an idea but why not disable the menu and create a custom html component for the menu instead. Switch these out and you can do what you like. Or where the menu placeholder is located in the ...
Nick's user avatar
  • 175
1 vote

Joomla 3.8.1 Neither Alternative Menu Item Nor Layout Reflects on Front End

I know this is a really old post, but I ran across it trying to solve the same issue in Joomla 4. The simple solution was to change the case. The template filename need to be in all lowercase: joomla/...
Scott Talsma's user avatar
1 vote

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

The file you are looking for is located in: [ROOT_DIRECTORY]/layouts/joomla/content/full_image.php To create an override for it, copy it and place it inside: [ROOT_DIRECTORY]/templates/...
FFrewin's user avatar
  • 19.7k
1 vote

Articles list from a category displayed in 2 columns

It's not clear what kind of answer you are seeking here and your question is getting a bit broad - I assume you are asking about directions and will try to provide some. You have a few options to ...
FFrewin's user avatar
  • 19.7k
1 vote

Tagged items listing layout after clicking on a tag is displayed on homepage

Why this is happening? This is happening (showing the tags list page on homepage) because there is no menu item for this particular view. So Joomla, because it needs a menu item for each component's ...
FFrewin's user avatar
  • 19.7k
1 vote
Accepted

Hide tags in category blog layout

In short this is the hierarchy. Menu item layout can be overridden by Article options and the the Article Page itself has the final say so if you will.
norcal johnny's user avatar
1 vote

Get Category intro image in the index.php

Firstly, the only code that should go into index.php is code that should appear on every page. What you want to do is on the category view, so your code should go in the category view override. It is ...
Seth Warburton's user avatar
1 vote

Joomla! 3.6.2 Template Purity III Layout Glossary - second alphabet ordering

The following lines of code are what determine your glossary headings: $items = JATemplateHelper::getArticles($params, $catid, 0); $groups = array(); $other = 'others'; for ($group = 'a'; $group < '...
Michael Yaeger's user avatar
1 vote

Random image in an article

Some ideas: Use the nth or :first selector in css, so only the first image in that area is 100% Add new style/styles they can select via the WYWIWYG using the editor.css file in your template - they ...
RichardB's user avatar
  • 3,082
1 vote

Menu Item - Show only a few articles

In addition to Nicola's answer, there can be other ways to achieve what you are after. A very common one, is to display articles using a module. You could create an article, where you will load that ...
FFrewin's user avatar
  • 19.7k
1 vote

How to create one page Joomla site?

should be possible with the t3 framework http://www.t3-framework.org/ and a core template. For the homepage you can set the template the way you want it,even without menubar if you want to. it's even ...
jswebdesign's user avatar
1 vote

Module positioning layout

You can add new module positions directly from the Template administrator panel: Our main aim was to move possibly a large number of parameters to administrative panel which normally were changed ...
Bogowoe's user avatar
  • 1,178

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