After update Joomla 3.6, when I make a Menu Item Alias
Put in the name
Select the Menu item
Save
Get error
Save failed with the following error: Another menu item has the same alias in Root (remember it may be a trashed item). Root is the top level parent.
Should save and put a date in the Alias field like it did in 3.5.1
If I put in a date and then save, it will save properly
Error Save failed with the following error: Another menu item has the same alias in Root (remember it may be a trashed item). Root is the top level parent.
Joomla 3.6
PHP 7.0.9
Database Version 5.1.73
Browser FireFox
Reading this request I don't understand the benefit. If there was a date, the system automatically knew where you were going and showed the proper page in url. Language has no affect on dates. So now I have to manually put in a name that doesn't already exist, where all other menus it is done for me. If I wanted to put in something else I could, so the benefit was already there for these other people. This has taken something good out and returned something worse. This is an alias, not a proper menu.
IIRC the problem with the date is if you have a submenu of an alias.
So if I have a menu alias with a date, and have a submenu of that alias with a date, it wouldn't work. Is that the issue?
The issue is that people didn't like URLs with meaningless dates
@visualtribe
See https://github.com/bertmert/plg_system_backtodatealias
Please read "How to install:" and restrictions. We hadn't time yet to release an install. package and things.
Thanks
I am closing this as expected behaviour
(It is beyond me why someone would ever create an alias with the same name as another menu item on the exact same level)
Status | New | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-01 08:27:41 |
Closed_By | ⇒ | brianteeman |
The issue is this. Before 3.6 when you created a menu typw alias then it was always given an alias of the date. This was a problem when you had a submenu or breadcrumbs and this date was in the url. Now the alias is generated just as it would for any other menu item.
You cannot have two items with the same alias at the same level. Thats what the error message is saying (at least it is in english I hope the italian is not a bad translation).
If the menu type alias is not at the same level or does not have the same title then there is no problem
The only scenario that you will ever see that error message is if you are creating a menu alias to a menu item called Contact at the same level.
I cannot see why you would ever have two menu items with the same name at the same level
(Note this restriction applies to all menu items not just alias)
I cannot see why you would ever have two menu items with the same name at the same level
1) If you have a hidden menu that contains the basic structure of your real URLs (see it like a master) and then create menus that only use menu items of type Menu Alias pointing to the hidden menu then you now have too often the conflict described above while saving. I always build a hidden menu that displays the structure of "good URLs". Let's say "the allowed ones" for search engines.
2) In menu selections (associtations) "you don't have to think". You see which menu named "Impressum" is the correct one and which one has to be checked (most people also check the Alias Menu or only the Alias Menu and are surprised...).
If I want a submenu of a Menu Alias that is not a Menu Alias pointing to the master I can enter an alias but that's the more rare case.
It depends on your personal workflow and the environment which behavior you prefer. I prefer current date. I see it as a B\C break that I can live with.
I have two different menu items in my Main Menu that take the visitor to different contents.
Both must have the same name
I need to create two different menu modules with aliases to these items. Both look the same in each menu.
Menu 1:
Menu 2:
Previously it would be able to save them with no hassle and would get the same URLs with the aliases:
Now, it seems Joomla cannot differentiate that I am pointing to different menu items, then it returns the error when I attempt to create the second alias because it sees two menu items with the same name on the same level. My only choice is to change the menu item alias, which is not what I want.
Error Save failed with the following error: Another menu item has the same alias in Root (remember it may be a trashed item). Root is the top level parent.
System aliases should be able to be created based on their source menu item, not where they are "physically".
@ghost Thanks for the plugin. Any chance you could repost it? I use the alias feature all the time.
The issue of adding submenus to aliases only applies to real menu items as sub items to an alias. I often create new menus created soley with aliases to the core structure, when designing "simplified/bespoke menus" for use elsewhere in site. When it is just aliases in the structure, the urls behave as they would when real menus being used...i.e. no dates present.
(It is beyond me why someone would ever create an alias with the same name as another menu item on the exact same level)
@brianteeman
One simple, useful requirement for this is when submenus are revealed by hovering rather than clicking. I usually add an alias to the parent item so that it also appears in the submenu, otherwise the parent menu item is often ignored or missed.
Someone might suggest to use a "#" in the parent menu but then you don't get the same structural benefits of say a category view as the parent.
@Bodge-IT I dont understand how your comment is related to this issue of using real names instead of dates for a menu alias.
Re my comment
(It is beyond me why someone would ever create an alias with the same name as another menu item on the exact same level)
Note the highlighted phrase
@brianteeman Aha devil is always in the detail!
I understand this issue is closed. I understand the software no longer creates the datestamp as the URL. But now, my menu alias pages are coming up as having duplicate metadescriptions. For SEO purposes, how do I get around this?
I have not because I was researching this issue and it is related. I will ask on the forums but my understanding based on an article by Cliff Pfeiffer is that the menu item alias using the date was specifically so you didn't end up with duplicate content. Since that functionality was taken away, I am at a loss for how to handle this.
This is not a bug it is a change made in 3.6 after user requests. See #10756