Page 2 of 2

Re: two seperate menues

Posted: Mon Mar 25, 2013 9:03 pm
by manu
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