How to omit one page from the generated menu.
Posted: Wed Jun 07, 2006 1:49 am
There's no easy way to omit a selection of pages. However it's not too hard to omit just one page.
You need to use a fragment of text that only appears in that page's name. E.g. below it is "Choice".
Edit norcascade_pop_tail.js (in Site1 - back it up first)
look for the lump of code
replace it with
Look for the line
and amend it to
and change the word 'Choice' above (2 places) to match something that's only in the section name to be omitted.
Now run the NorCascade configuration program and do "Create Vars". That's it.
You need to use a fragment of text that only appears in that page's name. E.g. below it is "Choice".
Edit norcascade_pop_tail.js (in Site1 - back it up first)
look for the lump of code
Code: Select all
if ( names[I].pChild && (thislevel <= maxdepth) )
{
haschild = true;
var thisseq = 'mM' + seq++;
names[I].pChild.id = thisseq;
if ( OnlyFinalLinks )
{
addItem(names[I].sName, thisseq, 'sm:', null, LineHeight, Spacing);
}
else
{
addItem(names[I].sName, thisseq, 'sm:', null, LineHeight, Spacing).onclick='window.location.href="' + link + '"';
}
}
else
{
addItem(names[I].sName, link, '', null, LineHeight, Spacing);
}
}
replace it with
Code: Select all
if (names[I].sName.indexOf('Choice') == -1)
{
if ( names[I].pChild && (thislevel <= maxdepth) )
{
haschild = true;
var thisseq = 'mM' + seq++;
names[I].pChild.id = thisseq;
if ( OnlyFinalLinks )
{
addItem(names[I].sName, thisseq, 'sm:', null, LineHeight, Spacing);
}
else
{
addItem(names[I].sName, thisseq, 'sm:', null, LineHeight, Spacing).onclick='window.location.href="' + link + '"';
}
}
else
{
addItem(names[I].sName, link, '', null, LineHeight, Spacing);
}
}
}
Code: Select all
if ( names[I].pChild )
Code: Select all
if ( ( names[I].sName.indexOf('Choice') == -1) && names[I].pChild )
Now run the NorCascade configuration program and do "Create Vars". That's it.