Skip to content

Instantly share code, notes, and snippets.

@brisbanewebdeveloper
Created July 12, 2012 15:02
Show Gist options
  • Select an option

  • Save brisbanewebdeveloper/3098657 to your computer and use it in GitHub Desktop.

Select an option

Save brisbanewebdeveloper/3098657 to your computer and use it in GitHub Desktop.
How to take out the link from the breadcrumbs for Joomla 2.5
// Get rid of the links having specific request from breadcrumbs (this example is targeting the pages using the component Ignite Gallery)
$app = JFactory::getApplication();
$pathway = $app->getPathway();
 
$pathway_list = $pathway->getPathway();
$pathway_list_new = array();
 
$menu = JMenu::getInstance('site');
foreach ($pathway_list as $pathway_item) {
    if (strpos($pathway_item->link, 'option=com_igallery') !== false) continue;
    $pathway_list_new[] = $pathway_item;
}
$pathway->setPathway($pathway_list_new);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment