Summary

Current versions of Joomla! display a dual entry in the mosPathway() output for child items of the 'Home' item.

A menu structure like:

- Home
|- Page 2
|- Page 3
- Page 4
|- Page 5

Will display a correct pathway for 'Page 4' and 'Page 5'.

However, the pathway displays as:

Home * Home * Page 2
-and-
Home * Home * Page 2 * Page 3

for the menu items which are children / grandchildren of the 'Home' item.

!! VERY EASY TO FIX !!

On line 304 of includes/pathway.php I inserted an extra condition:

" || $mitems[$mid]->id == $home_menu->id"

So that line 304 of includes/pathway.php now reads:

if (!$mid || empty( $mitems[$mid] ) || $Itemid == $home_menu->id || !eregi("option", $optionstring) || $mitems[$mid]->id == $home_menu->id) {

Attached is my corrected version of includes/pathway.php
Opened On:
22 Sep 2008, 10:49 by Aequitas Internet
Status:
Open

Filed Under

  • Administrator
  • Joomla! Libraries