| Linked component name in Pathway |
| Sonntag, 02 Juli 2006 | |
|
There is a problem in Joomla!'s pathway when you're using a third party component. When you navigate deeper in to a component like Mosets Tree you would expect to be able to browse back to the root directory from the pathway. But no, Joomla simply return the component name without link. This tips (or rather hack) fixes this problem and in addition to that, it fixes the pathway problem when you have Mosets Tree published to the frontpage. It removes the duplication and works as expected.
Instructions PHP Code: $newlink = " $itemname"; Replace it with: PHP Code: if( @$mitems[$home_menu->id]->name <> $item->name ) { $newlink = '<a href="'. sefRelToAbs( $item->link .'&Itemid='. $item->id ) .'" class="pathway">'. $item->name .'</a>'; } LINE: 309 Replace the following codes PHP Code: if ( eregi( 'option', $optionstring ) && trim( $path ) ) { PHP Code: if ( (eregi( 'option', $optionstring ) && trim( $path )) || @$mitems[$home_menu->id]->name == $item->name ) {
|
| < zurück | weiter > |
|---|


