Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:23

Using Menu5 RC4 and Coldfusion

Poster: dwlarson
Dated: Thursday July 31 2003 - 4:37:35 BST

Okay, now that I got menu 5 RC4 working with Safari, there is now a problem with the directories I have setup under my ColdFusion website <>.

When I was using menu 4 and previous, I could use the the calls to load the scripts in the top level of my site directory. All the sub-directory files had the identical Javascript calls and they always found and displayed the menus.

Now my sub-directories don't find the menus using the same conventions.

I saw a posting under the Bugs Forum that indicated using the "ScriptPath" settings, but that didn't work for me. I noticed that the path included the "Templates" folder under ColdFusion.

Perhaps the problem is because I don't use the "Templates" folder to hold my ".cfm" templates; I just keep them at the top level of my site. I make the adjustments to the individual pages in sub-folders to call my templates at the top-level and it works fine for those purposes.

Now that process is in question when using the menu5 files.

My question is, is my only solution to set the ColdFusion Server to look for my templates in a folder named, "Templates" and then use the information from the Bug Forum messages to set my menus?

If so, I still have one question and a followup. Do I still keep the menu5 images in the same top-level images folder as is? Or, where is the place to put and refer to them in the new "Templates" folder setup? I didn't follow that part of the discussion very well.



Poster: John
Dated: Thursday July 31 2003 - 17:01:38 BST

Hey Don -

That 'templates' directory is mine, and just happened to be the way I've set up that server. Could have called it anything, and the name has nothing to do with the script as a 'requirement'. It's just a handy place for me to keep cfincludes and the like. Could have called it /bathroom/ for that matter.

You obviously read that post, but here's a quick recap...

All my menu files are kept in /sai/templates/menu5/. Therefore, that's exactly what scriptpath is set at...

scriptpath="/sai/templates/menu5/"; (using server-relative addressing).

My calls are in a cfinclude, also located in /sai/templates/, which looks like this...

<cfinclude template="/sai/templates/Nav_Standard.cfm">

...and gets this...

<script language="Javascript" src="/sai/templates/menu5/milonic_src.js" type="text/javascript"></script>
<script language="Javascript" src="/sai/templates/menu5/xp_data.cfm" type="text/javascript"></script>

Note the only reason the array is .cfm is because I'm doing some CF stuff in that menu (duh!), but it would typically be a .js.

The 'trick' with an in-depth (i.e., more than one level deep) site is to use server-relative addressing, as I've shown above. If not, you need to keep changing calls, etc, for every level you go down.

As for the images, put them wherever you like. Just adjust you call in the array accordingly.