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,

Please help URGENTLY!!!

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.

We are running in a .net environment and I have access to ASP and ASP.net.

We have a valid Milonic licence.

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

Tony

(I am resubmitting this as my days leave may have put my previous request on the back burner)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

So, if I get this right you want to build a menu based on a Directory structure.

This is a directory struction on the server I take it?

I doubt if security would allow you to prove a directory structure using JavaScript on the client.

This all needs to run under .NET too?

-- Andy
Riceag
Beginner
Beginner
Posts: 4
Joined: Thu Mar 02, 2006 4:38 pm
Location: Hemel Hempstead

Post by Riceag »

Hi Andy,

You've got it in one. 8)

However, it is not the entire menu that needs to be built from a directory structure. Just two of the dropdowns. The rest is generated in the normal way.

That is, the main menu is built as per usual, with dropdowns 3 to 6 also being built in the normal way. Dropdowns 1 and 2 are to be built from two directorys.

To complicate matters a little more, part of one of the directory trees is only to be viewable by the Directors. At this stage we have security in place at the directory level. This seems to be the easiest (and probably worst) way of doing it.

Also, keep in mind that this is an Intranet site, so only Company employees will be accessing it.

Some additional info.
We had the menu working (our home grown one, utilising a mixture of HTML, asp, js and vb) but the overheads were so high that it just wasn't viable.

It is not necessary to show the actual content of each bottom tier directory, as we call an aspx page which shows the content when the directory is clicked. (We found that showing the content makes the menu totally unusable because of the size - there are literally thousands of items across the numerous directories)

I hope this makes some part of our need a little clearer.

Tony :?
Post Reply