two seperate menues

About the template and stylesheet - and changing the menu
manu
Posts: 1090
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: two seperate menues

Post by manu » Mon Mar 25, 2013 9:03 pm

Here's the final code for the meta navigation with subpages:

Code: Select all

function liMeta($ta, $st) {
    global $cl, $h, $hc;
    $key = array_search('About us', $h);  //extract page key from actual headings array
    $i = array_search($key, $ta);       //extract pageindex from pages array
    $ta = array_slice($ta, $i);
    return xliMod($ta, $st);
}

function liNormal($ta, $st) {
    global $cl, $h;
    $key = array_search('About us', $h);
    $i = array_search($key, $ta);
    $ta = array_slice($ta, 0, $i);
    return liMod($ta, $st);
}  
The page title has to be unique.
regards
manu

Post Reply