How to add breadcrumbs

From Joomla! Documentation

Revision as of 06:46, 5 April 2015 by Wilsonge (talk | contribs) (Correct code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What is a breadcrumb?[edit]

Breadcrumbs are nice way to display the connection from the root. It gives you a hierarchical representation with click able links so that user can visit upper links easily. Breadcrumbs can be added in templates by using the object returned by

JFactory::getApplication()->getPathWay()

. The member function addItem() allows to add a breadcrumb with the title of choice.

Developer Tutorials[edit]