test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • eugenn Friend
    #145014

    I would like to use the Dropline type of the ja menu but how I can disable drop line feature? I mean to hide all subitems in the menu.

    Anonymous Moderator
    #319955

    Hi eugenn

    For this case, please open templatesja_teline_iiilibsmenudropline.class.php file, at about line 19, find following code:

    [PHP]
    function genMenu($startlevel=0, $endlevel = 10){

    if ($startlevel == 0) parent::genMenu(0,0);
    else {
    $this->setParam(‘startlevel’, $startlevel);
    $this->setParam(‘endlevel’, $endlevel);
    $this->beginMenu($startlevel, $endlevel);
    //Sub level
    $pid = $this->getParentId($startlevel – 1);
    if (@$this->children[$pid]) {
    foreach ($this->children[$pid] as $row) {
    if (@$this->children[$row->id]) {
    $this->genMenuItems ($row->id, $startlevel);
    } else {
    echo “<ul id=”jasdl-subnav{$row->id}”><li class=”empty”> </li></ul>”;
    }
    }
    }
    $this->endMenu($startlevel, $endlevel);
    }
    }
    [/PHP]

    and change to:

    [PHP]
    function genMenu($startlevel=0, $endlevel = 10){

    if ($startlevel ==1) {
    return ;
    }
    if ($startlevel == 0) parent::genMenu(0,0);
    else {
    $this->setParam(‘startlevel’, $startlevel);
    $this->setParam(‘endlevel’, $endlevel);
    $this->beginMenu($startlevel, $endlevel);
    //Sub level
    $pid = $this->getParentId($startlevel – 1);
    if (@$this->children[$pid]) {
    foreach ($this->children[$pid] as $row) {
    if (@$this->children[$row->id]) {
    $this->genMenuItems ($row->id, $startlevel);
    } else {
    echo “<ul id=”jasdl-subnav{$row->id}”><li class=”empty”> </li></ul>”;
    }
    }
    }
    $this->endMenu($startlevel, $endlevel);
    }
    }
    [/PHP]

    brovazzz Friend
    #430082

    How do I disable drop menu in Telline III?

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 3 voices, and was last updated by  brovazzz 13 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum