Difference between revisions of "How to add breadcrumbs"

From Joomla! Documentation

m (added Category:Tutorials using HotCat)
(Correct code)
 
Line 2: Line 2:
 
{{disambig}}
 
{{disambig}}
 
===What is a breadcrumb?===
 
===What is a breadcrumb?===
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 $mainframe->getPathWay(). The member function addItem() allows to add a breadcrumb with the title of choice.
+
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 <source lang="php">JFactory::getApplication()->getPathWay()</source>. The member function addItem() allows to add a breadcrumb with the title of choice.
  
 
===Developer Tutorials===
 
===Developer Tutorials===

Latest revision as of 07:46, 5 April 2015

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]