How to Link from One Joomla Article to Another Using Hidden Menu |
| January 18, 2011 |
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![]() 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. ![]() 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.
![]() 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. 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 ItemThis 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: Lets get started with #2.
![]() Menus >> Menu Manager
![]() New.
![]() Fill in the information appropriately.
![]() Save.
![]() Menus >> Hidden Menu
![]() New.
![]() Articles >> Article Layout.
![]() Enter the Title.
![]() Select Article.
![]() Click on Article.
![]() Apply.
![]() Now we have our alias which we can use for our link! Copy the Alias.
![]() 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. 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. |
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright © 2012 Open Source Training, LLC. All rights reserved.
Comments
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
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
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
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
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
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
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
RSS feed for comments to this post