?
avatar hubumedia
hubumedia
21 Nov 2014

Steps to reproduce the issue

  1. Clean installation of Joomla 3.3.6 using the "learn Joomla" example content with no third party extensions.
  2. Assign Beez3 as default template
  3. Create an alternative layout in /templates/beez3/html/mod_login/[newlayoutname].php (I made an exact copy of the default.php layout)
  4. In the administrator module manager, Open the login module in position7
  5. In advanced properties select the alternative layout and save
  6. Go to the front end of the site and login using the module.

Expected result

The expected result should be identical to the default layout for this module. After logging in you should see the standard "hello username" with a logout button.

Actual result

The actual result is that the login module displays as if you haven't logged in. It shows the username and password fields with login button. Also the alternative layout doesn't appear to be used at all. The "default" still seems to be used. Making minor changes to the alternative layout php code never appears in the module.

System information (as much as possible)

Latest version of joomla (3.3.6)
Only core joomla from a standard installation and using the "learn joomla" sample content installation.

Additional comments

I followed the instructions for creating a module alternative layout from this link:

Joomla Module Alternative Layout instructions

For my specific site that started my research, I had upgraded a J25 site that used a mod_login alternative layout that worked exactly as expected.

Once it was successfully migrated to j3 everything worked perfectly except for the alternative layout for mod_login. To make sure it wasn't a "bad migration" I installed a clean fresh core joomla 3.3.6 to test it out. I have not tested other module alternative layouts, only the mod_login as it was the only one I needed.

In addition to the alternative layout not working, from that same link adding a language override to change the name of the alternative layout in the administrator drop down selection also does not work.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar hubumedia hubumedia - open - 21 Nov 2014
avatar hubumedia hubumedia - change - 21 Nov 2014
The description was changed
avatar hubumedia
hubumedia - comment - 21 Nov 2014

New information:

The instructions for creating a module alternative layout for mod_login are "incomplete".
If you create a custom layout for the login module, you must create a matching alternative layout for the _logout.php as well even if it is not different than the default. this was not the case for joomla 2.5.

Example:
Alternative layout files located in /templates/[mytemplate]/html/mod_login/
newlayoutname.php
newlayoutname_logout.php

Creating BOTH of these files makes the alternative layout work as expected.

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

avatar hubumedia
hubumedia - comment - 21 Nov 2014

Additional info:

On further research, the mod_login alternative layout appears to function a bit differently from joomla 2.5.
My original alternative layout required changes only to the "default" layout, just one file with changes that worked on both the login and logout versions.
For j3 those edits had to be moved to the _logout.php file instead of the "main" file.

This could all be "user error" or inexperience with the process, however the official instructions use the mod_login as the example and those instructions do not work the same for j2.5 and j3 as described. So this would be a documentation "bug" rather than a functionality bug.

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

avatar Bakual
Bakual - comment - 21 Nov 2014

I'd say a documentation bug then. mod_login indeed behaves a bit different because it uses two layouts, one for guests and another one for logged in users.

@Hutchy68 Can you check that?

avatar brianteeman
brianteeman - comment - 21 Nov 2014

Resetting priority according to published spec

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

avatar brianteeman brianteeman - change - 21 Nov 2014
Priority Critical Medium
avatar brianteeman
brianteeman - comment - 27 Nov 2014

I am closing this here as it as been determined to be a documentation and not a code bug.

Please create an account at docs.joomla.org and update the docs.

Thanks

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

avatar zero-24 zero-24 - close - 27 Nov 2014
avatar brianteeman brianteeman - change - 27 Nov 2014
Status New Closed
avatar jissues-bot jissues-bot - close - 27 Nov 2014
avatar jissues-bot
jissues-bot - comment - 27 Nov 2014
avatar jissues-bot jissues-bot - change - 27 Nov 2014
Closed_Date 0000-00-00 00:00:00 2014-11-27 18:23:11
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment