-
Details
-
Written by Tech Notes
-
Category: Joomla
-
Published: 22 March 2014
Format of Joomla Dynamic URL (web link address)
Please note that I do not get paid to write these articles. All are done in a best effort manner.
On occasion you may want to make use of the dynamic link provided by Joomla. One reason you may want to use the dynamic link is if you are concerned that you may change the category of an article, or move it in general and the static pretty link alias used for that page gets broken when you have it linked to content (words or pics). A dynamic link won't change even if you change the category associated with the article, and as long as the article ID stays the same, which is most often the case.
Joomla link has the following format: index.php?option=com_content&view=article&id=X&Itemid=Y
The X would be the ID number of the desired article (from the Article Manager) and Y is the ID of the desired Menu item (from the Menu Manager).
So, if you want to link a picture, or a word or menu to an article, it would be in this format: http://Hostname.SecondaryDomain.TLD/index.php?option=com_content&view=article&id=8. As you can see, the link can be created without the "&Itemid=Y" portion, and the article would still show.
Note that such a link using a index.php via ? to generate the page could be considered non-search-engine-friendly URL (a non-SEF URL) or non-SEO friendly.
An example of such a link usage is at the bottom each page of this site; existed during the time this was being written. The Terms/Policy/Legals page is linked in a dynamic manner.