Page 1 of 1

Just a nice menu - Asp.net

Posted: Thu 6. Jan 2005, 10:59
by jsw_nz
Came across this menu tree, developed for asp.net. Would be a nice addition to wcms. The code itself is free. Would need to be hacked/modified to pull acat table xml. Nice little menu....works client side....just a thought.
It can be viewed here:

http://www.speerio.net/Default.aspx?tabid=671

Cheers,

Posted: Thu 6. Jan 2005, 19:12
by frold
well I dont like it....

but if level and sublevel could use different icons then the phpwcms menu could easy be made to look like that one...

Posted: Fri 7. Jan 2005, 02:52
by jsw_nz
Hi Frold....

Yes...the icons, as design elements, could be swapped. Their name and directory are called from the function:

Code: Select all

function dTree(objName,iconPath)
So that is very editable. Otherwise the entire code can stay intact. The functions that would need to be developed for wcms would be the backend code to generate tree structure. Looking at source on the page a list of values is generated in backend:

Code: Select all

siteMap_ctl0__ctl2__ctl0.add(10,9,'Store FAQs','/Default.aspx?tabid=789');
which could be (roughly translated from source) to:

Code: Select all

wcms_tree_data = new dTree('wcms_tree_data','/pathTo/ImageFolder/');
wcms_tree_data.config.inOrder=true;
wcms_tree_data.config.useStatusText=false;
wcms_tree_data.add(0,-1,'Site Categories');
wcms_tree_data.add(1,0,'Home','/index.php?home');
wcms_tree_data.add(2,0,'About','/index.php?about');
wcms_tree_data.add(3,2,'About_Sub_1','/index.php?about_subcategory_1');
wcms_tree_data.add(4,2,'About_Sub_2','/index.php?about_subcategory_2');
//and so on......
document.write(wcms_tree_data);

//basically first digit is category specific ID and second digit is parent ID
Would represent an interesting project....

All best and happy new year.
:) john

Posted: Fri 7. Jan 2005, 13:55
by spirelli
wwould be nice for some download area on webpages...