Joomla alias to external menu doesn't work - joomla

I have a menu to an external link:
Menu name: Support
Type: External Link
Link: http://www.somesite.com/support
That menu shows up in several areas of the site and it will be changing, so I wanted to make an alias to it, that way I only need to change the original:
Menu Name: Support menu example
Type: Menu Alias
Menu Alias: support-menu
Menu Lnk: Support
Problem is, the test menu gives me a 404 error, if I change it to point to a single article menu, it works great, but any menu that points to an external link gives me the error.
Here is the link I get when I hover over the alias menu:
http://www.somesite.com/?Itemid=138
I tried inputting the atual link with th eitem id and it still doesn't work fo rthe external links, only aticles, and I verified the id #'s:
http://www.somewebsite.com/index.php?Itemid=115

After a quick glance through the menu component, it looks like building the links as http://www.somesite.com/?Itemid=138 is hardcoded and difficult to get around.
You could probably sidestep this a little bit by using the Redirect component of Joomla. Find http://www.somesite.com/?Itemid=138 in the component and set it to redirect to http://www.somesite.com/support. You will still have to update the link in two places if it changes (once in the menu and once in redirect) but that would be better than many places.
This is probably also a bug that should be submitted back to Joomla for improvement.

Related

Create a childpage in Joomla without showing it in a menu

I would like to create a page in Joomla without showing it in a menu.
That would be easy when the URL could be from the root, e.g.
www.mysite.com/hiddenpage
I would just make a menu without module to show it and assign a menulink to that hidden menu.
However the url should be
www.mysite.com/parentpage/hiddenpage
So the page should be linked to another existing page as a childpage but without showing in the menu.
So far this seems not possible?
Am I overlooking a feature in Joomla which would allow me to simply deactivate visibility in the menu without preventing the page from being accessed from the internet?
Or perhaps is it possible to edit or override a core component to force Joomla to allow this behaviour?
UPDATE:
Too much thinking in one direction...
The solution to do this is to edit the menu-item > linktype > css give it class "hide" (integrated bootstrap class) to just block visibility in the menu...
It's possible but a litle bit tricky. Try these steps :
Create a new two articles, name it as you wish (for example Article A and Article B )
Create a new menu group (from your administrator page go to : Menus > Menu Manager > Add new menu, name it as 'Hidden Menu'
Create a new Single Article menu item (under the 'Hidden Menu'), choose 'Article A' as as the article source and type 'parentpage' in the Menu Title field
Create a new Single Article menu item (under the 'Hidden Menu'), choose 'Article B' as the article source, choose 'parentpage' menu as the parent item and type 'hiddenpage' in the Menu Title field.
Now both of urls www.mysite.com/parentpage and www.mysite.com/parentpage/hiddenpage should be accessible now
As others have mentioned you can find extensions to modify URLs or hide the menu items using CSS, but these can require quite a bit of work especially if this is a one-off or once in a while situation.
However, there is one way to do this with Joomla as-is and will work with any type of menu items, not just articles. These instructions assume you already have a 'hidden' menu setup.
In a hidden menu, create menu items (or move them if they already exist) for parentpage and hiddenpage.
Set parentpage as the 'Parent Item' option in the hiddenpage menu item. Basically, create the page/subpage structure you'd like to see in the URL.
On your visible menu, create a 'Menu item Alias' (under 'System Links') menu item. Set the 'Menu item' option to the parentpage (listed under the hidden menu).
Enjoy. Parentpage is a visible menu item. hiddenpage is available at www.mysite.com/parentpage/hiddenpage
-Nick
No this is not possible with Joomla.
There are several options for you to achieve the same result, I list them in order of ease.
Use joomla redirect component. Simply tell the user to surf to the url he wants, he will then find it in the administrator - components - redirect, where she can insert the non-sef url.
Tell them to use a different prefix: i.e. create a hidden menu where they will add the direct links;
Additionally, in order to remove the id from the url you can:
Install simplecustomrouter extension, it should do the job out of the box but some coding may be required on your part in order for it to work properly; extremely lightweight.
Go for a blasoned SEF extension such as sh440sef, this will add some overhead and may require a lot of work in configuration.
FOR JOOMLA 3.X:
While editing the childmenu just set (under "Linktype") "Display in menu" to "no"... it's simple like that!
Here's a reference to the joomla.docs site
https://docs.joomla.org/images/6/6f/Help-3x-menus-menu-manager-new-menu-item-link-type-en.png
if link is broken just search for "edit menu linktype joomla 3" in future.
I'm glad I can return the many saved searchtime to y'all stackpeople. Go on Community!

Joomla! 3 menu drop-down behavior without showing new article possible?

The Joomla! 3 administrative console in my installed version (Joomla! 3.1.5 Stable) plus at least a Joomla! demo web site showcase menus that don't switch to an article if you press them, but present only the drop-down menu at first. The rendered article (i.e. the content below the menu) only changes once a menu-item is selected/clicked.
For instance, visit demo.joomla.org. The content below the menu reads "Joomla! is a free, open source content management system ..." Now if you press e.g. "Joomla!" inside the menu, a drop-down list appears, but the cited text does not change yet. Only if you press a particular menu item it changes (currently e.g. to "Joomla! 2.5.16 Released ...").
I would like to accomplish the same behavior in a Joomla! 3-powered web site but haven't yet been able to do so. On my site (sorry, not yet available to the public) clicking a menu of this kind brings up the article, and so far I have found no way to prevent that. I'm referring to articles because my menus are of type "Single Article". I've looked at other menu item types too but they did not seem to offer a solution either.
So can the behavior the demo site's menus be accomplished (without installing further extensions), and if so how? After all, the demos are surely hosted on Jooma! servers :) Perhaps this is a matter of choosing an appropriate template? But then, the solution does not seem obvious and googling reveals different opinions as to whether this is/was possible at all.
UPDATE The following is a depiction of what I get when changing the menu item type for "Open Source" from "Articles | Single Article" to "System Links | Text Separator": it now looks odd and no longer seems to function as a menu (no drop-down effect). In the HTML source the CSS classes assigned to the three menu items are "item-x current active", "item-y divider parent", and "item-z parent" respectively. (Why isn't "Open Source" marked active?)
UPDATE I am using the protostar template (marked as Default for Site under Extensions | Type Manager).
Create the top-level menus as System - Separator; this means they have no link attached, but only serve the purpose of organizing (sub)menu links.
Then when you click them, based on the setup of your menu module, they will show the sub-items. Beware, the most common behaviour is not to wait until clicked, but simply show the submenu items when hovered (when you bring the mouse over them). But the event they respond to depends on the module (mod_menu), its template override, and other scripts your template may load.
Update:
If you're using mod_menu, in the module list it will be listed as Menu; if you were using another menu module, I guess you would remember installing it :-)
I am not a protostar / twitter bootstrap fan so I can't help you much on it, but dropdown menus are definitely supported, I just tried putting the menu in the position navigation, with
"Menu Class Suffix" = " nav-pills nav-dropdown"
and it worked correctly with dropdowns on hover. As per having dropdowns on click instead of hover, look at this guide

Where is menu item in Joomla 1.5?

OK, I'm new to Joomla. Making updates for someone still using 1.5, plan to get them upgraded to v3...
I need to add a new article and menu item. I've figured out where to do that in the backend, but my menu item isn't showing up in the navigation. I went to menu manager, where I added the new link to a menu called mymenu. I see the actual module in the template is titled myleftmenu, and I have the menu item selected there with the others from mymenu that appear throughout the site.
I've researched this and see maybe there were some bugs in 1.5, even some weird conflict with php 5.3, but none of this makes sense. I don't have spaces or special characters in the menu alias (or wherever that had been an issue for some people). I'm really stumped here because this really makes no sense. I don't seem to have anywhere else to look in the backend to update or change this, so what's the issue?
I would check:
1- check if you are placing your mymenu in the right module position. To do that put that /index.php?tp=1 at the end of your url (eg: www.web.com/index.php?tp=1) it will give you the position.
2- check if your menu is published (you need to click on "published")
3- if you are trying to make a drop down menu : know that it is not supporter by native joomla so you need to download module such as this one.
4- maybe your menu works but is not display because of overflow:hidden
I tried to modify other menu items in the backend and nothing was updating. I finally went searching for a php file that could have been hand-coded and modified and found that in my modules directory. Not being familiar with Joomla, and not sure if this menu had even been set up correctly, I then had to figure out how to get the right blog and item ID numbers for the hyperlink. Ugh! I feel like someone went about building this in a way that just made it more difficult for everyone who has to update the site in the future. Now I'm really wondering what a version upgrade is going to do to this!

joomla how to create a custom link

I have set mod_rewrite in joomla so I can use link like http://www.mysite.com/home, http://www.mysite.com/contact where home and contact are link aliases.
All of this link are part of menu, but I'm intersted in create link that will be never displayed in any menu, how can do that?
There are a couple ways it can be done. The quick and easy way is to make a hidden menu just for creating links. Simply create a new menu and don't put it in a module. You can add all the menu items you want without having to display them anywhere and you get nice clean URLs.
You can also get the URL of an article that does not have a menu item, but it gets pretty long to use. The URL of an article will be something like -
domain.com/parent menu item alias/item alias.html
It will use the alias from what ever menu item it is inheriting the itemID from az part of the URL. I generally use the first method to avoid the long URLs.

Remove "componentheading" from homepage - Joomla!

I'm working on a site in Joomla! and on the homepage, at the top of the article, it comes up with a h1 of the website name. The pagesource says (Note it's not the article title.)
Any idea how to get rid of it?
Thanks,
Steph
You can set this h1 tag not to display via the Parameters - System section of your Menu Item Manager screen in administrator ... this page has a nice depiction of the steps.
It's so simple
Just do the following :
Login to the Joomla Administrator Interface
Go to the Menu Manager
Select your Menu
Select your Menu Item (Home Menu)
On the right hand, Click Parameters (System)—> and in the *Show Page Title—->*Just Select No.
That's all.
This is not the desired solution, since many people, (including myself) actually need to be able to Set/Override the page title (That Appears in the Browser’s Title bar), and setting Page Title to no here will also remove the functionality to Configure the Browser title (which is important for SEO among other things).
Anyway, I have searched and not been able to find a fully correct solution via CMS or PHP Code. The closest solution which is not fully perfect, but unlikely to cause significant (if any) negative effect on your site is through Javascript (Example is JQuery).
jQuery(document).ready( function($) {
$(‘.componentheading’).empty();
});
This can also be done is JS with no JQuery. When I find a better method of doing this I’ll let you know.This should actually be done by removing output from a template file.I don’t know which one yet. When I do, I’ll post it…
When setting the page title not to show in the menu item as stated in other answers, this will not stop the text entered in the page title box being used as the browser title, it will just stop it being shown in the page.
Using javascript to remove it is not a good idea.
1. It will only work for browsers with javascript enabled
2. Search engine spiders will still see it. As the component heading for articles is 'articles' by default it will see all your pages with the same h1 tag.
Just turn it off in the menu item and enter your browser title in the text box above.

Resources