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.
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.
Latest version of joomla (3.3.6)
Only core joomla from a standard installation and using the "learn joomla" sample content installation.
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.
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.
Resetting priority according to published spec
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5153.
Priority | Critical | ⇒ | Medium |
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.
Status | New | ⇒ | Closed |
Set to "closed" on behalf of @brianteeman by The JTracker Application at issues.joomla.org/joomla-cms/5153
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-11-27 18:23:11 |
Labels |
Added:
?
|
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.