Pascal Goldbach
Pascal Goldbach

Reputation: 1007

Breadcrumb doesn't work on a component I created (Joomla!)

I'm learning how to use Joomla! 3.2

I created a new component, then I added it to my main menu,

Here are the only parameters I changed in the main menu: parameters

But now when I go to my new component the breadcrumb doesn't work correctly, there's only the home button and when I click on it I'm redirected to the same page:

breadcrumb

Did i missed something very important? How can I fix it? The breadcrumb works on every other pages.

Upvotes: 0

Views: 565

Answers (2)

Pascal Goldbach
Pascal Goldbach

Reputation: 1007

Ok I found the problem, I forgot to add this

$pathway = $app->getPathway();
$breadcrumb = $pathway->setPathway(array());
$pathway->addItem( JText::_( 'COM_PARTISPOLITIQUES' ),JRoute::_('index.php?option=com_partispolitiques&view=partispolitique'));
$pathway->addItem( "Current page name",'');

In the file view.html.php located in my component folder...

Upvotes: 1

norcal johnny
norcal johnny

Reputation: 2115

I am going to assume you are using the Helix template as it seems to be a common oversight.

Make sure that Enable Page Title is enabled from your menu Helix Page Title tab. If not, please advise as to what template.

Upvotes: 0

Related Questions