| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
appendPathWay |
appendPathWay() |
Never | Internal Review |
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 JDocument::setMetaData instead.
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. |
Example 1
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.
Example 2
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.