J3 Issue ?
avatar Sieger66
Sieger66
9 Sep 2017

All Joomla-Versions after Joomla! 3.8.0-rc1

With PR #14802 in 3.8.0-rc1 come alternative layout parameter to com_content menutypes

Steps to reproduce the issue

Protostar is Default-Template.

  1. Create an alternate layout for articles in the Protostar-Template and name it menutypelayout.php - for example add into the headline of this alternate layout for articles "This is the Alternate Article Layout set in Menutype"

  2. Setup a Testcategory with at least Testarticle 1 and Testarticle 2

  3. Create a Menuitem with Testcategory Blog View, Select menutypelayout as alternate Layout in the Options tab (Choose a Layout). In the Details Tab is Template Style: protostar-Default

  4. Go to frontend and click to menuitem you have created at 3.

  5. Click in frontend on Testarticle 1 or Testarticle 2

Now the articles Testarticle 1 and 2 are shown correct in the assigned menutypelayout Layout in frontend(single-article-view).

But if you now change in the Menuitem to an other TemplateStyle(for example from Protostar to Beez)
Menuitem with Testcategory Blog View -> Details -> Template Style -> Beez3-Default
and save it with one click on the Save-Button.

Then works the menutypelayout furthermore with the Beez-Template
But you dont see this in the Menuitem at:
Menuitem with Testcategory Blog View -> Options -> Choose a Layout

If you now save it again then is come the displayed result(view without the alternate Layout from the other Template).
Save it twice after change to an other Template Style then you have always the correct "view".

Similar the same problem as in the PR #16755 and #8578
comes from the same bug.

System information (as much as possible)

All Joomla-Versions after:
Joomla! 3.8.0-rc1
also for Example 3.8.3-dev

Additional comments

shamsbd71 in PR#16755 30.Juni:

I have tested as you asked and yes there is an issue but its not related to this xml params. its relate to
filed type componentlayout.

mbabker in PR#16755 30.Juni:

That layout parameter should save with a value like "template_name:layout_name" when saved to the database, and when used in the PHP API, that template name segment gets parsed by the view class to figure out that it needs to change the active template.

If that logic is broken, it will be a bug that already exists and would need to be addressed separately from adding this field.

avatar Sieger66 Sieger66 - open - 9 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 9 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Sep 2017
Category Templates (admin)
avatar Sieger66 Sieger66 - change - 9 Sep 2017
The description was changed
avatar Sieger66 Sieger66 - edited - 9 Sep 2017
avatar Sieger66 Sieger66 - change - 11 Nov 2017
The description was changed
avatar Sieger66 Sieger66 - edited - 11 Nov 2017
avatar Sieger66 Sieger66 - change - 19 Nov 2017
The description was changed
avatar Sieger66 Sieger66 - edited - 19 Nov 2017
avatar Sieger66 Sieger66 - change - 24 Nov 2017
The description was changed
avatar Sieger66 Sieger66 - edited - 24 Nov 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 25 Nov 2017
Status New Information Required
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 25 Nov 2017

@coolcat-creations can you please have a Look at this Issue?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17912.

avatar coolcat-creations
coolcat-creations - comment - 25 Nov 2017

Yes as said by @mbabker before but that logic was broken before and is not related to the mentioned PR.

You have to change the template style, save, and then change your alternate layout. That's because the alternate layout field does not update automatically after changing the template style.

I can't fix this update process as I don't know how. Maybe someone else knows?

avatar Sieger66 Sieger66 - change - 4 Dec 2017
The description was changed
avatar Sieger66 Sieger66 - edited - 4 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Dec 2017

@Sieger66 any Comment on Comment above?

avatar Sieger66
Sieger66 - comment - 6 Jan 2018

Yes i know, what coolcat-creations write is correct.

But i am not a coder or programmer and i can not make a PR to correct the bug in the core-system.

Alternativly if nobody have time to fix the bug in the core :
Make a better description or warning in the three helpsites(Help Screens):

https://help.joomla.org/proxy/index.php?option=com_help&keyref=Help38:Menus_Menu_Item_Article_Category_Blog

https://help.joomla.org/proxy/index.php?option=com_help&keyref=Help38:Menus_Menu_Item_Article_Category_List

https://help.joomla.org/proxy/index.php?option=com_help&keyref=Help38:Menus_Menu_Item_Article_Categories

For example this addition for the Details-Tab of the three helpsites(Help Screens):

If you use an alternative layout at the Options-Tab and
if you change the template style, save first the template style, and then change your alternate layout in the Options-Tab.
That's because the alternate layout field does not update automatically allways correct after changing the template style.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17912.

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Jan 2018
Status Information Required Discussion
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar jwaisner jwaisner - change - 11 Mar 2020
Status Discussion Confirmed
avatar joomla-cms-bot joomla-cms-bot - change - 12 Mar 2020
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2020-03-12 07:57:26
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 12 Mar 2020
avatar SharkyKZ SharkyKZ - change - 12 Mar 2020
Closed_By joomla-cms-bot SharkyKZ
avatar joomla-cms-bot
joomla-cms-bot - comment - 12 Mar 2020

Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/17912

avatar SharkyKZ
SharkyKZ - comment - 12 Mar 2020

Please test PR #27002.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17912.

Add a Comment

Login with GitHub to post a comment