I am reviewing this menu and it is truly awesome.
However I have a question...
I have subdirectories such as:
Recipes
News
Files
Includes
Images
JS
Calendar
All the menu files and would be located in the Includes directory in a file called: HEADER (to include the two JS files)
Now the menu I am trying to get to work would be visiable across all directories.
So if you were viewing the INDEX file in the NEWS directory, there would be a call to the INCLUDES directory to obtain the HEADER file which basically does the layout of the page along with the menu. At the end of the INDEX file is a call to the FOOTER page which is also in the INCLUDES directory.
The menu does not work unless it is called from the same directory.
Is this how it works? Can this be used with Subdirectories?
Thanks in Advance!
Subdirectories
I use includes all over the place on a lot of my pages. See http://westcgi.west.asu.edu/sai/ as an example. These are ColdFusion pages, but that shouldn't matter.
I call the menu scripts with which is nothing more than
Headers, footers, and css are also called in the same way. Since I have a number of sub- and sub-sub-directories and they all call to the same location (/sai/templates/), you can see that it does work.
I call the menu scripts with
Code: Select all
<cfinclude template="/sai/templates/Nav_Standard.cfm">
Code: Select all
<script language="JavaScript" src="/sai/templates/menu_array.cfm" type="text/javascript"></script>
<script language="JavaScript" src="/sai/templates/mmenu.js" type="text/javascript"></script>
John
Well I am using CF and have a directory setup as such:
Client / Secure
Client / Secure / Members
Client / Secure / Includes
Within the INCLUDES directory I have the files:
Header.cfm
Footer.cfm
mmenu_array.js
mmenu.js
In the Client / Secure / Members directory I have a file called INDEX.CFM
Example of the INDEX.CFM
<cfinclude template="../includes/header.cfm">
::Blah::
::Blah::
<SCRIPT language=JavaScript src="../includes/mmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../includes/mmenu.js" type=text/javascript></SCRIPT>
::Blah::
::Blah::
<cfinclude template="../includes/footer.cfm">
And I get the Header, MAIN Page, Footer, but no MENU.
Ideas?
Client / Secure
Client / Secure / Members
Client / Secure / Includes
Within the INCLUDES directory I have the files:
Header.cfm
Footer.cfm
mmenu_array.js
mmenu.js
In the Client / Secure / Members directory I have a file called INDEX.CFM
Example of the INDEX.CFM
<cfinclude template="../includes/header.cfm">
::Blah::
::Blah::
<SCRIPT language=JavaScript src="../includes/mmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../includes/mmenu.js" type=text/javascript></SCRIPT>
::Blah::
::Blah::
<cfinclude template="../includes/footer.cfm">
And I get the Header, MAIN Page, Footer, but no MENU.
Ideas?