Joomla Tutorials and Blog Posts

How to Link from One Joomla Article to Another Using Hidden Menu

January 18, 2011 | Written by Nick Savov

One of our students asked us for a step by step tutorial of how to link one item to another using a wysiwyg editor, so we created this tutorial for him.

 

If Article is Assigned to a Menu Item

tutuploadstutuploadstutuploadsmedia_1295385084593.png

If the article to which we want to link is already assigned to a menu item, then it is pretty simple to link to it.

First, click on the menu item (in our example, FAQ) to which you want to link.

tutuploadstutuploadstutuploadsmedia_1295385004605_1.png

It is better to create relative URLs within your articles so rather than copying the whole url we are only going to copy everything after your root url. In most cases your root url will be www.yoursite.com/, however the site that I use to create tutorials and do testing is installed within a subfolder, the ostraining folder, so I only need the "faq" part of the url.

Second, Copy the relative url.

Hint: Don't include the forward slash "/" before the relative url.
Hint: If your url looks something like this index.php?option=com_content&view=article&id=19&Itemid=2 and you want it to be simple and easy to read, you can follow our Ultimate Joomla SEF URL Guide.

 

tutuploadstutuploadstutuploadsmedia_1295386486330.png

Go to the article in which you want the link to appear.

1) Highlight the text that you want to be a link to the article.
2) Click the create "Insert Link" button, which cause a pop-up to appear.
3) Paste your relative url in the url area.
4) Click Insert.

That's it! Just save the article and you are done! Of course, be sure to double check the link on the frontend.

If the Article is Not Assigned to a Menu Item

This is the step that gets most people. What if the article is not linked to a menu item? How do you determine its url? If you are not using sef urls, then you can figure out the url, however sef urls are best and sef urls are created via menu items.

So we have two choices:
1) Create a menu item in a current menu that is displayed in the frontend and follow the directions in the first have of this tutorial, however what if we don't want a menu item to be displayed in the front end?
2) Create a "Hidden Menu". This will allow us to get a url for the article and not display the menu item in the frontend.

Lets get started with #2.

 

tutuploadstutuploadstutuploadsmedia_1295388247677.png

Menus >> Menu Manager

 

tutuploadstutuploadstutuploadsmedia_1295388334619.png

New.

 

tutuploadstutuploadstutuploadsmedia_1295388494142.png

Fill in the information appropriately.

 

tutuploadstutuploadstutuploadsmedia_1295388649315.png

Save.

 

tutuploadstutuploadstutuploadsmedia_1295388696840.png

Menus >> Hidden Menu

 

tutuploadstutuploadstutuploadsmedia_1295388334619_1.png

New.

 

tutuploadstutuploadstutuploadsmedia_1295389275715.png

Articles >> Article Layout.

 

tutuploadstutuploadstutuploadsmedia_1295389433149.png

Enter the Title.

 

tutuploadstutuploadstutuploadsmedia_1295389493922.png

Select Article.

 

tutuploadstutuploadstutuploadsmedia_1295389566503.png

Click on Article.

 

tutuploadstutuploadstutuploadsmedia_1295389632868.png

Apply.

 

tutuploadstutuploadstutuploadsmedia_1295389692944.png

Now we have our alias which we can use for our link!

Copy the Alias.

 

tutuploadstutuploadstutuploadsmedia_1295386486330_1.png

Go to the article in which you want the link to appear.

1) Highlight the text that you want to be a link to the article.
2) Click the create "Insert Link" button, which cause a pop-up to appear.
3) Paste your relative url in the url area.
4) Click Insert.

That's it! Just save the article and you are done! Of course, be sure to double check the link on the frontend.

Hint: Make sure the article is set to uncategorized.


 

Comments  

 
#1 mikev 2011-01-22 08:32
Hello Nick,

What is the advantage to creat a hidden menu in order to link an article the other ways it to link to the original address of the article that ends in the article id no need to make a hidden manue
 
 
#2 davies401 2011-01-22 16:04
This feature is often used as a response - for example as the return URL in a successful or unsuccessful form submission - or in response to an unusual action - very useful, and shows a level of expertise in navigation within the site design.
 
 
#3 iowawebco 2011-01-23 04:25
Hi Mike,

This is really the only way to do it with search engine friendly urls. You can't link to the article directly using search engine friendly urls, but only through menu item aliases you can.

Using non search engine friendly urls you can link directly (e.g. index.php?option=com_content&view=article&id=19&Itemid=27), however this url is hard to read for your site's users and furthermore it is really bad for search engine optimization.

Give it a try yourself!

Let me know if you have any more questions! :-)

Kind regards,
Nick
 
 
#4 edulozada 2011-04-23 10:32
Nick what happens here if I don't create a module for the menu?: Leave the 'Module Title' field blank.

And if I have to create a module, what do I do to keep it actually hidden?

Should it be like unpublished? or in a special position?

Thanks Nick
 
 
#5 iowawebco 2011-04-23 12:54
Hi Eduardo,

It automatically creates the title for you and also the module. The module will not be assigned to a module position so it will be hidden. So in other words it just creates it in case you ever need it in the future.

Kind regards,
Nick
 
 
#6 dav isra 2011-06-27 15:13
Hi Nick,

Thanks for the info. I'm trying to use this 'feature' for another problem: the search component on my site gives several links with '../component/content/..' in the url. The problem is that with a hidden item I get pages with the right menu module but without a active link in the menu. Is there a way to solve this?

regards,
David
 
 
#7 Bhupinder 2011-09-09 12:47
Hi Nick,
I was wondering if I could ask you to look at my website that I have built using Joomla 1.7. In the sidepanel where I have articles listed in accordian fashion...if I click on any of the articles they are displayed in the component area...but depending on whether I was on the HOME page or ABOUT Us page the article shows up based on that...meaning if I am on the HOME page to begin with and I click on any of the articles from Sidepanel...the article shows up with the scrolling images Module on the top...but if I am on ABOUT Us page to begin with and click on the article from the sidepanel...then it shows up fine. How can I make it such that when I click on the article ...it just shows me the article and not the module ...basically not tied up with the starting page (be it HOME ow ABOUT US or any other) to show up the article.
My website is
www.kashmerekonnection.com
I hope to get some isight from you on this.
Thanks,
Bhupinder
 
 
#8 iowawebco 2011-09-11 15:26
Hi and welcome, Bhupinder!

Sorry for the inconvenience, but if you're a student at OSTraining, could you copy and paste this into the support forum so one of our support techs can look into it for you? All you have to do is log in at www.ostraining.com and click on Support Forum in the main menu.

Please see the support FAQ for more information:
www.ostraining.com/.../

Kind regards,
Nick
 

Add comment