====== appendPathWay ======
{#JAPI Joomla.Framework Application JApplication::appendPathWay - IR #}
Appends an item to the pathway of the current document. A link can be associated with this item which will be displayed unless the item is the last item in the pathway.
**The method is deprecated** and provided for backwards compatibility with Joomla! 1.0. It is scheduled to be removed in future versions.
Use [[references:joomla.framework:document:JDocument-setMetaData|JDocument::setMetaData]] instead.
===== Syntax =====
void appendPathWay ( **$name**, **$link** )
| **$name** | string | the item to add to the pathway. |
| **$link** | string | a URL which the item should reference. This parameter is optional, and if omitted the item will not be linked. |
===== Examples =====
global $mainframe;
$mainframe->appendPathWay( "CustomPathItem1", "http://www.test1.ca" );
will add an item 'CustomPathItem1' to the page's pathway. This item will not be linked.
global $mainframe;
$mainframe->appendPathWay( "CustomPathItem1", "http://www.test1.ca" );
$mainframe->appendPathWay( "CustomPathItem2", "http://www.test2.ca" );
will add these two items to the page's pathway. A link will be displayed on the first item, but not on the second item.
----
~~DISCUSSION~~