Just a nice menu - Asp.net

Use GitHub to post feature requests for phpwcms.
Locked
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Just a nice menu - Asp.net

Post 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,
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post 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...
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
jsw_nz
Posts: 907
Joined: Fri 2. Apr 2004, 02:42
Location: New Zealand

Post 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
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

wwould be nice for some download area on webpages...
Locked