Jump to content

Breadcrumbs don't show correct on discussions and compare pages


Andreas Behrens

Recommended Posts

Hi,

 

my problem is that joomla's breadcrumbs module doesn't show correct path on discussions and compare pages.

I suppose it is because it does not recognize discussions and compare itemids correctly.

 

I use sh404sef with following configuration:

- with .htacces mod rewrite

- configuration>>advanced>>idemid management>>Insert menu Itemid if none>>YES

- configuration>>advanced>>idemid management>>Insert menu title if no Itemid>>YES

- configuration>>advanced>>idemid management>>everything else set to NO

- using jreviews default sh404sef plugin

 

In my joomla templates index.php I have added:

if($Itemid == SUBCATEGORY IN HIDDEN JREVIEWS MENU){

   $menu->setActive(SUBCATEGORY IN MAIN MENU);

}

 

 

Resulting urls:

 

joomla sef OFF & sh404sef OFF:

/index.php?option=com_jreviews&Itemid=357&url=discussions/review&id=2

=>breadcrumbs = home / directory-title / category-title / subcategory-title

 

joomla sef ON & sh404sef OFF:

/directory-alias/category-alias/subcategory-alias/discussions/review?id=2

=>breadcrumbs = home / directory-title / category-title / subcategory-title

 

joomla sef ON & sh404sef ON:

/subcategory/discussions/review/?id=2

=>breadcrumbs = home

 

Urls are okay, but breadcrumbs for both ON are not correct.

If I set in sh404sef configuration>>advanced>>idemid management>>Always append Itemid to SEF URL to YES the breadcrumbs are correct (but appending Itemids to EVERY url is not what works for me).

 

How can I fix this?

 

Thanks in advance,

Andy

Link to comment
×
×
  • Create New...