Create Menu Items from Directory Structure

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Riceag
Beginner
Beginner
Posts: 4
Joined: Thu Mar 02, 2006 4:38 pm
Location: Hemel Hempstead

Create Menu Items from Directory Structure

Post by Riceag »

Hi Folks,

Can anyone tell me, or supply code, that can dynamically populate an existing Milonic menu with sub-menus based on the contents of a specific directory, with each sub-directory being a new submenu. The last submenu in any cascade needs to show the contents of the sub-directory. (Without file extensions would be great, but not critical)

It is a very complicated directory structure containing all the Company documentation required by the users, and as this documentation changes constantly, trying to hard-code menu items will be a never ending process.

Our Milonic licence no is 201460, and the company is Park Resorts.

Any help would really be appreciated, as without this functionality the menu is of no value to us. :oops:

Tony
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

one option is
you need to get the directory/file structure loaded into a SQL database. From there you create the js menu, please see:

http://milonic.com/forum/viewtopic.php?t=1920

Michael
Migru
Milonic Guru
Milonic Guru
Posts: 669
Joined: Tue Nov 01, 2005 8:22 pm
Location: Hamburg - Germany
Contact:

Post by Migru »

Hi

another option


Your hint
trying to hard-code menu items will be a never ending process.
is not really acceptable, considering that requirements for updating for instance the treemenu/collapsable menu which is recommended for this type of application, is really done in a comfortable and quick way, more or less by copy and paste code and editiing the relevant url(s).

Michael
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

What sort of server are you running, get access to ASP or PHP?
Riceag
Beginner
Beginner
Posts: 4
Joined: Thu Mar 02, 2006 4:38 pm
Location: Hemel Hempstead

Post by Riceag »

Andy wrote:What sort of server are you running, get access to ASP or PHP?
Sorry for delay, days leave on Friday.
I have access to ASP and ASP.net
But menu needs to run under .net
Post Reply