I'm at the brink of despair
My idea was to create a little module, which shows just the nodes under the selected menu. Just showing all submenu items. For example we've:
Code: Select all
Company
- History
- 2000
- 2001
- 2002
- News
I've coded that:
Code: Select all
defined('_JEXEC') or die('Restricted access');
require_once( JPATH_BASE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php' );
$active = &JSite::getMenu()->getActive();
$rows = &JSite::getMenu()->getItems('menutype', $active->menutype);
foreach ($rows as $rowItem) {
if ($rowItem->parent == $active->id ){
echo '<a href="' . ContentHelperRoute::getArticleRoute($rowItem->id) .'">' . $rowItem->name . '</a><br/>';
}
}
http://localhost/index.php?option=com_c ... 24&lang=de
(24 is the id of the parent)
instead of
http://localhost/index.php?option=com_c ... 34&lang=de
How do I create a link like in a normal menu??? I was searching for nearly 4 hours...nothing
Thanks for helping