NorCascade - Create Dropdown Menus from Actinic Netquotevar Section Structure. 

Author Norman Rouxel - www.drillpine.biz (V11)

CHANGE LOG

03-02-06 V1.07	Added compatibility with clean install of V7.
		Files changed:
			NorCascade.exe

13-12-05 V1.06	Added compatibility with Actinic Multi-User V7.
		Files changed:
			NorCascade.exe


This uses the Actinic Sectiontree Netquotevar structures and is always up-to-date 
with the site structure.  The menu is automatically rebuilt whenever you upload the site.

This program is capable of creating a set of cascading drop down menus for navigating all the 
sections from an Actinic V5 or V6 site.  
You can have menus laid out horizontally or vertically.  
They can start with a single piece of text, an image icon, or show your entire top-level section list.
You can have the menu fixed in place on the page or floating so that it's always in view.

This uses the CASCADING POPUP MENUS v5.2beta (c) 2001-2003 Angus Turnbull, http://www.twinhelix.com
see the above site for restrictions and licensing info.

This is an excellent cascading menu system that works in most major browsers.


How it works:
        
Actinic will automatically generate an array of section names and URL's if you add two NETQUOTEVAR's
to your Act_Primary.html.   As these aren't in the format that CASCADING POPUP MENUS v5.2beta uses 
a small recursive Javascript routine (buildmenu) converts these arrays into the required type.   
There are lots of configuration parameters.

Installation:

Install NorCascade from this zipfile.   This should install into C:\Program Files\NorCascade.
  
See the http://www.twinhelix.com site for full info. Download the v5.2beta.

From that download copy the files pop_core.js and pop_events.js into your C:\Program Files\NorCascade folder.

Run NorCasCade, select the version of Actinic you're using (V5 or V6) and do Create Var, Save Settings
and the necessary support files will be copied to your Site folder..

You also have to follow the Configuration instructions below to patch Act_Primary.html 
and (optionally) Act_Brochure_Primary.html.   

The menu will be automatically created whenever you do a site Preview, Update or Refresh.


Configuration:


	In your Site folder (usually Site1) in Act_Primary.html immediately before the </HEAD> tag 
	(make a backup copy first) add the following html (use a text editor not a word processor):-


<link rel="stylesheet" type="text/css" href="pop_style.css" />


	In your Site folder (usually Site1) in Act_Primary.html immediately after the end of the <BODY ....> tag 
	(make a backup copy first) add the following html (use a text editor not a word processor):-



<!-- START NorCascade Act_Primary.html patch -->
<!--   optional speed up fragment - redefining actiniccore.js's CreateArray to skip creating unused entries -->
<script language=JavaScript>
<!-- Norman Rouxel ( http://www.drillpine.biz (V11) ) amended to work with Actinic netquotevar based section structure 
function CreateArray(v11)
	{
	this.length = v11;
	for (var i=1; i <= v11; i++) this[i] = new Object();
	return this;
	}
//-->
</script>
<script language=JavaScript>var loggedin = true;</script>
<Actinic:NOTINB2B>
<script language=JavaScript>var loggedin = false;</script>
</Actinic:NOTINB2B>
NETQUOTEVAR:SECTIONTREE_NAMES
NETQUOTEVAR:SECTIONTREE_URLS
<script type="text/javascript" language="JavaScript1.2" src="pop_core.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="norcascade_pop_data.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="pop_events.js"></script>
<noscript>NorCascade (V11) requires JavaScript</noscript>
<!--END NorCascade Act_Primary.html patch -->




	(Catalog will detect the references to pop_style.css, pop_core.js, norcascade_pop_data.js 
	and pop_data.js and upload them for you.)



Also in Act_Primary.html change the line (it's near the top)

 	<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>

	to read

	<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/></Actinic:BASEHREF>

	Some versions of Actinic also have a line in Act_Primary.html

	<Actinic:COOKIECHECK/>

	if you find it - change this to read   

	<Actinic:COOKIECHECK/></Actinic:COOKIECHECK/>


The above fixes a bug with Netscape 4 browsers where the text within the menus is invisible.



Removing NorCascade from a live system:

	Just restore Act_Primary.html (and Act_BrochurePrimary.html if used) to its original state.
	The NorCascade config program can be removed through Control Panel / Add - Remove Programs.  



Brochure pages:

	If you want to use menu from within Brochure then you'll need to have the menu structure
	active in Act_Primary.html as above (to generate the sectiontree files).  
	I.e. the lines 

NETQUOTEVAR:SECTIONTREE_NAMES
NETQUOTEVAR:SECTIONTREE_URLS

	must be there.



	In your Site folder (usually Site1) in Act_BrochurePrimary.html immediately before the </HEAD> tag 
	(make a backup copy first) add the following html (use a text editor not a word processor):-


<link rel="stylesheet" type="text/css" href="pop_style.css" />


 
	And add the following code (again just below the <BODY ...>) tag:--



<!-- START NorCascade Act_Brochure_Primary.html patch -->
<!--   start of optional speed up fragment - redefining actiniccore.js's CreateArray to skip creating unused entries -->
<script type='text/javascript'>           
<!-- Norman Rouxel ( http://www.drillpine.biz (V11) ) amended to work with Actinic netquotevar based section structure 
function CreateArray(n)
	{
	this.length = n;
	for (var i=1; i <= n; i++) this[i] = new Object();
	return this;
	}
//-->
</script>
<!--   end of optional speed up fragment -->
<script language=JavaScript>var loggedin = true;</script>
<Actinic:NOTINB2B>
<script language=JavaScript>var loggedin = false;</script>
</Actinic:NOTINB2B>
<script type="text/javascript" src="Act_section_tree_names.js"></script>
<script type="text/javascript" src="Act_section_tree_URLs.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="pop_core.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="norcascade_pop_data.js"></script>
<script type="text/javascript" language="JavaScript1.2" src="pop_events.js"></script>
<noscript>NorCascade (V11) requires JavaScript</noscript>
<!-- END NorCascade Act_Brochure_Primary.html patch -->



Also in Act_BrochurePrimary.html change the line (it's near the top)

 	<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>

	to read

	<Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/></Actinic:BASEHREF>

	Some versions of Actinic also have a line in Act_BrochurePrimary.html

	<Actinic:COOKIECHECK/>

	if you find it - change this to read   

	<Actinic:COOKIECHECK/></Actinic:COOKIECHECK/>




Non Catalog created pages.

	If your pages are outside of the Acatalog folder then apply the Brochure patch above to your other pages.
	In these patches amend the 5 "src=" bits to contain the path from these pages to your acatalog folder.  


Support:

	None.  Zilch.  Zip.  Polite questions might get answered but I'm pretty busy.  I would like to have
	a look at sites you use it on so please send me a URL.
	All the usual disclaimers apply.

Norman Rouxel www.drillpine.biz (V11)


