Advertisement

Empty main menu item, but withou alias in the URL Topic is solved

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
I-MAG
Joomla! Ace
Joomla! Ace
Posts: 1009
Joined: Sat Oct 14, 2006 5:25 pm
Location: Kuwait

Empty main menu item, but withou alias in the URL

Post by I-MAG » Fri Sep 13, 2024 2:27 pm

Hello,
I'd like to have a parent item in the menu that does not link to anything, so that I put other items in the menu beneath it.
It's a sort of faux parent that links to nothing, but harbors other items under one umbrella.
I'm aware that one way to do it is like so:
2024-09-13 17_23_33-Menus_ Edit Item - دار ناشري للنشر الإلكتروني - Administration — Mozilla Firefox.png
But the problem now is that the alias will be part of the link. I don't want that.

Is there a way to do it without the disadvantage of having the alias appear as part of the url?

Thanks.
You do not have the required permissions to view the files attached to this post.

Advertisement
gws
Joomla! Champion
Joomla! Champion
Posts: 6348
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Empty main menu item, but withou alias in the URL

Post by gws » Fri Sep 13, 2024 3:54 pm

Menu type header in system links.

I-MAG
Joomla! Ace
Joomla! Ace
Posts: 1009
Joined: Sat Oct 14, 2006 5:25 pm
Location: Kuwait

Re: Empty main menu item, but withou alias in the URL

Post by I-MAG » Fri Sep 13, 2024 4:11 pm

gws wrote: Fri Sep 13, 2024 3:54 pm Menu type header in system links.
Thank you very much indeed!

I-MAG
Joomla! Ace
Joomla! Ace
Posts: 1009
Joined: Sat Oct 14, 2006 5:25 pm
Location: Kuwait

Re: Empty main menu item, but withou alias in the URL

Post by I-MAG » Fri Sep 13, 2024 4:17 pm

gws wrote: Fri Sep 13, 2024 3:54 pm Menu type header in system links.
I've just tried it. Still, the URL will include the alias the heading item hold.
I tried not assigning an alias, the system created its own!

gws
Joomla! Champion
Joomla! Champion
Posts: 6348
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Empty main menu item, but withou alias in the URL

Post by gws » Fri Sep 13, 2024 4:21 pm

You leave the link empty!!!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44567
Joined: Sat Apr 05, 2008 9:58 pm

Re: Empty main menu item, but withou alias in the URL

Post by Webdongle » Fri Sep 13, 2024 4:21 pm

You don't use a menu item type Alias.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

I-MAG
Joomla! Ace
Joomla! Ace
Posts: 1009
Joined: Sat Oct 14, 2006 5:25 pm
Location: Kuwait

Re: Empty main menu item, but withou alias in the URL

Post by I-MAG » Fri Sep 13, 2024 4:30 pm

Webdongle wrote: Fri Sep 13, 2024 4:21 pm You don't use a menu item type Alias.
I'm not sure I got what you mean.
Here is a screensahot of what I did.
2024-09-13 19_29_32-Menus_ Edit Item - دار ناشري للنشر الإلكتروني - Administration — Mozilla Firefox.png
Do you pointing out what I should change?
Thanks.
You do not have the required permissions to view the files attached to this post.

gws
Joomla! Champion
Joomla! Champion
Posts: 6348
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Empty main menu item, but withou alias in the URL

Post by gws » Fri Sep 13, 2024 5:32 pm

That looks correct.

I-MAG
Joomla! Ace
Joomla! Ace
Posts: 1009
Joined: Sat Oct 14, 2006 5:25 pm
Location: Kuwait

Re: Empty main menu item, but withou alias in the URL

Post by I-MAG » Sat Sep 14, 2024 7:30 am

gws wrote: Fri Sep 13, 2024 5:32 pm That looks correct.
But that's not what I'm looking for. :(
As you can see, now the alias of the heading appears in the URL:
2.png
I don't want that extra alias to show. I want the heading to be just there, but without affecting the URL.
You do not have the required permissions to view the files attached to this post.

Mr. Wimpy
Joomla! Guru
Joomla! Guru
Posts: 554
Joined: Fri Dec 02, 2005 10:46 am
Location: The Netherlands

Re: Empty main menu item, but withou alias in the URL

Post by Mr. Wimpy » Sat Sep 14, 2024 8:06 am

Joomla creates the URL based on the menu structure: mysite.tld/menu-item/submenu-item/etc.

You could look at extensions for menus:
https://extensions.joomla.org/tags/menu-systems/

Or use aliases. Upside: no additional extension. Downside: double work
- Create a (hidden) menu with your menu-items.
- Create a menu with menu-readings and the submenus are aliases to menu-items in the (hidden) menu.

I-MAG
Joomla! Ace
Joomla! Ace
Posts: 1009
Joined: Sat Oct 14, 2006 5:25 pm
Location: Kuwait

Re: Empty main menu item, but withou alias in the URL

Post by I-MAG » Fri Sep 20, 2024 11:17 am

Mr. Wimpy wrote: Sat Sep 14, 2024 8:06 am Joomla creates the URL based on the menu structure: mysite.tld/menu-item/submenu-item/etc.

You could look at extensions for menus:
https://extensions.joomla.org/tags/menu-systems/

Or use aliases. Upside: no additional extension. Downside: double work
- Create a (hidden) menu with your menu-items.
- Create a menu with menu-readings and the submenus are aliases to menu-items in the (hidden) menu.
Thank you. I used the second way and it worked! :)

Advertisement

Post Reply

Return to “Administration Joomla! 4.x”