? Success

User tests: Successful: Unsuccessful:

avatar Denitz Denitz - open - 4 Feb 2014
avatar Bakual
Bakual - comment - 4 Feb 2014

That's actually how it's supposed to work, although I agree that it's confusing.

When you create a single contact menu item, you're selecting a specific layout already. Using alternate layouts doesn't make much sense here. To show a different layout here, you would have to create a alternative menu item instead (which means add an xml file to the alternative layout).

The alternative layout works fine as long as the menu item points to the category view for example.

The confusing thing is that Joomla makes a difference between alternative layouts (without XML file) and alternative menu items (with XML file).

avatar Denitz
Denitz - comment - 4 Feb 2014

I should work like current articles in com_content, otherwise 'Alternative Layout' setting of contact is useless.
With this patch we can use different layouts from other templates, or layouts from /html overrides even without XML files: i.e. why should we create separate XML file for each layout if they will have same parameters? We can just create .php layouts in /html overrides and use them - it's fast and easy.

avatar Bakual
Bakual - comment - 4 Feb 2014

I should work like current articles in com_content, otherwise 'Alternative Layout' setting of contact is useless.

Hmm, then that behavior in com_content changed and I'm not sure yet if it's not a bug there :smile:

With this patch we can use different layouts from other templates, or layouts from /html overrides even without XML files: i.e. why should we create separate XML file for each layout if they will have same parameters? We can just create .php layouts in /html overrides and use them - it's fast and easy.

I tend to agree with you, but I don't know why it was originally created this way. One disadvantage would be that you can't override an alternative layout (set in the article) using the menu item, which you currently can.

Anyway if we want to change that behavior, we should do it for each component and view, and not only in the com_contact -> contact view. It would probably be inconsistent with other extensions.

avatar Bakual
Bakual - comment - 4 Feb 2014

Ah I found it. It was actually you who changed that back in Juni with http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30544

Imho that one was wrong back then already.

Menu item params should always override item params (if the menu item is specific to that item) and the item params should override global settings.
And since we select a layout in the menu item, it should override layouts set in the linked item.

A proper fix would probably be to add the alternative layout parameter to the menu item. Maybe with additional options to "use global" and "use item".

avatar Denitz
Denitz - comment - 4 Feb 2014

Yes, 'Alternative Layout' is missed in menu item settings. So we need more complex patch, will try later...

avatar Denitz Denitz - change - 2 Apr 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-04-02 15:11:47
avatar Denitz Denitz - close - 2 Apr 2014
avatar GreenLion1010
GreenLion1010 - comment - 1 Oct 2014

Hello together,

i was wondering the same as Denitz did.
is there already a path for this problem?

i can't edit my overrides either - further they get not applied.

regards

This comment was created with the J!Tracker Application at http://issues.joomla.org/.

Add a Comment

Login with GitHub to post a comment