Table of Contents

appendPathWay

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method appendPathWay Reference 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.

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

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.