Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1047

Templates for Joomla! 5.x • BUG in TEMPLATE default

$
0
0
I'm surprised that this bug continues and very few have noticed or brought it up. I posted this about 10 moths ago and I've been searching for a solution since, but have gotten nowhere.

ISSUE:
When ITEMID is missing from the URL, the template assigned is the HOME PAGE template, rather than the DEFAULT template.

ISSUE FOUND IN J4 & J5 (J3 didn't have the issue)

REPLICATE THE ISSUE:
- Clean install of Joomla 5 (Current J 5.1.2)

- Create a new template style of CASSIOPEA, name it HOME PAGE, assign it to the HOME PAGE and set COLOUR THEME as Alternative for visual cue.
Image
Image

- Create an article (or more)
Image

- Create a MENU item for the article, leave template as "default" for it.
Image

- Create a Module to show only on the HOME PAGE (i.e. Custom HTML "THIS MODULE IS FOR THE HOME PAGE")
Image
Image

- Under Global Configuration (Site tab) set "Search Engine Friendly URLs" to NO
Image

- On the front end, the Home page will display in the red(ish) color, and the module saying it's the home page.
Image

- Click on the menu for the article and it shows with the default template as intended (blue and without the home page module).
Notice the url has the "itemid"
/index.php?option=com_content&view=article&id=1&Itemid=102
Image

- If we remove the ItemID from the URL the default template will be replaced with the HOME PAGE template
Image

WHY THIS IS A PROBLEM
It is very common to have separate templates for the home page and these templates highlight banners and modules before the "page content". Meaning that the "page content" position for the home page is usually down the page after some scrolling. Many extensions, especially when they interact with other extensions (i.e. VirtueMart, Community Builder, Kunena) will loose the "ItemID" in the URL when connecting one extension to another. While this may be blamed on those developers, the DEFAULT template should be the DEFAULT template and not the HOME PAGE template, if the ItemID goes missing.
I have read in the forum that this is supposed to be the default procedure, but it is not, as this clean install test clearly shows.

The real life experience ends up being that we get the perception that the link didn't work and we were re-directed to the home page, despite the info we wanted being displayed on the page, but out of sight.

I really hope this gets resolved soon.
Tomás

Statistics: Posted by tomasfc — Tue Aug 13, 2024 7:07 am



Viewing all articles
Browse latest Browse all 1047

Trending Articles