Create and Link to articles without a menu in Joomla!

TweetSharebar Tweet For Joomla! users, I am sure it is a little frustrating sometimes when you write an article and try to reference it with simple URL-friendly titles only to be greeted by a 404 not found error. The problems is that Joomla!, without the help of some extensions has no built in method for [...]

  • Sharebar

For Joomla! users, I am sure it is a little frustrating sometimes when you write an article and try to reference it with simple URL-friendly titles only to be greeted by a 404 not found error.

The problems is that Joomla!, without the help of some extensions has no built in method for publishing articles or inserting direct links in another article. Each article in Joomla! has a direct system identification number, which shows up in the article manager in the right side column in the list of articles.  These ‘ID’ numbers are unique and no two articles can have the same. For example, “index.php?option=com_content&view=article&id=12″ references an article with id number 12 and you have to use this link (instead of say, recipe.html) if you want to view the page.

The alternative is to create a menu and give it a “normal” because the Joomla! 1.5 default SEF URL creates search friendly URL based off of the menu items or links.  So, if you do not have a menu item, it is impossible for the software to create Search Engine Friendly link. This can quickly become a problem if you want to publish an article but do not want it to show up on a menu

To avoid having to create a visible menu item for every article, here’s a simple solution:

  • Go to the Menu Manager and create a new menu with any name (a unique name like Offline Menu worked for me).
  • Go into the module manager and locate the Offline Menu module that was automatically created and either disable it, or set it to a non-existent module position. My preference is to disable it.
  • Create a link to your article using the single article layout method.
  • Change the alias to whatever you want to have as your SEF URL (network-monitoring, for example).
  • Link to the new article with http://www.yoursite.com/link-alias.html.

This method works well for me. There are other tricks that involve making changes to the CSS stylesheet etc., but this one is simple and very easily gets the job done. The goal is to be able to create articles or link to them without creating visible menu items for each one.

Happy computing.

Author: Daniel Ihonvbere

See all posts by Daniel Ihonvbere (96)

9 comments until now

  • Thanks a lot I’ll try it right now!

    By José Andrés December 5, 2010 @ 6:06 am
  • This is awesome!! Thank you!!

    By Emily November 16, 2010 @ 1:51 am
  • This works great for me – thank you very much !

    By Til November 8, 2010 @ 10:11 am
  • Very useful, thanks.

    By Ben August 17, 2010 @ 4:33 am
  • Your article was very helpful. Thank You!

    By Lavinia Loredana August 10, 2010 @ 9:23 am
  • Thanks for the helpful post. I kind of figured this was the best solution, especially if using the SEF feature in Joomla. We use a lot of standalone sales landing pages where we don’t want to give the page visitor the option of navigating away from a page so it’s imperative to us to be able to create simple pages without navigation links to other site pages. I guess this is a standard issue with a CMS.

    By Joey Lowe May 17, 2010 @ 5:25 pm
    • Thanks for visiting. The landing pages and the need to “speak English” was why I settled on that route. It also helps with Google Analytics because you know exactly how your campaign is doing since it is an “exclusive” page. Watch out though. If you have the “Latest Articles” module enabled, the ever helpful Joomla! wizard will still show your article.

      By Daniel May 17, 2010 @ 5:51 pm
  • Why not just link to the Article component directly? Indicate your article’s ID at the end:

    e.g. [http://www.whatever.com/index.php?option=com_content&view=article&id=86]

    By David April 15, 2010 @ 2:22 pm
    • Thanks for your input David. I tried that and it was not satisfactory. When sending promotional letters or postcards to clients, it is easier to send a link that ends with say, “/serverwatch.html” that is easy to type than a long component id link that they may not be interested in typing in. But without a menu entry, they would get a 404 error. Plus, I really prefer the “human language” format.

      By Daniel April 15, 2010 @ 3:13 pm

Comments are disabled in this entry.