NoNameZ
NoNameZ

Reputation: 795

How to use breadcrumbs in Joomla in custom components?

I wrote simple component by this example, but when i entering it i see Home instead of my components name.

And also is it possible to get deeper, for example joomla->my_component->some_other_component, but exactly after mine.

P.S.

Found http://docs.joomla.org/How_to_add_breadcrumbs, but how use it automatically in every view?

Upvotes: 1

Views: 3323

Answers (1)

Harsha Nayanajith A.G.
Harsha Nayanajith A.G.

Reputation: 176

Try this:

$mainframe = &JFactory::getApplication();
$pathway =& $mainframe->getPathway();
$breadcrumb = $pathway->setPathway(array());
$pathway->addItem( JText::_( 'YOUR_BREDCRUMB_ITEM' ),'');

Replace YOUR_BREDCRUMB_ITEM with your item name. Hope this will help.

Upvotes: 8

Related Questions