Adding Extra Navigation to NorCascade's Menu
Posted: Sat Jul 10, 2004 11:10 am
Here's some example code that if patched into NorCasCade / Advanced / Extra Vars adds a new 5 item top-level menu where the 4th item is the original section tree.
Some of the links are dummy ones (and the Cart one refers to my own test server of course) but I hope there's enough there for you to get the idea.
Norman
Code: Select all
var top_section_tree_names = new CreateArray(5);
top_section_tree_names[1].sName = "Home";
top_section_tree_names[2].sName = "Cart";
top_section_tree_names[3].sName = "News";
top_section_tree_names[4].sName = "Products...";
top_section_tree_names[4].pChild = section_tree_names; // the Actinic Name Structure goes here
top_section_tree_names[5].sName = "Dummy Nav5";
var top_section_tree_URLs = new CreateArray(5);
top_section_tree_URLs[1].sURL = "index.html";
top_section_tree_URLs[2].sURL = "http://mega/cgi-bin/ca000022.pl?ACTION=SHOWCART";
top_section_tree_URLs[3].sURL = "http://news.bbc.co.uk";
top_section_tree_URLs[4].sURL = "index.html";
top_section_tree_URLs[4].pChild = section_tree_URLs; // the Actinic URL Structure goes here
top_section_tree_URLs[5].sURL = "Dummy Link5";
// now replace the Actinic structures with out modified ones
section_tree_names = top_section_tree_names;
section_tree_URLs = top_section_tree_URLs;
Norman