[Zope] Automated DHTML menu builder for Zope

Jaroslav Lukesh lsh@wo.cz
Fri, 27 Jun 2003 19:02:04 +0200


Hi all, 

today and for few another days Im too lazy (and busy) to publish them at
zope.org.

So if you want somebody, i could send you .zexp and .py. It needs
transparent folder product installed (sorry) and has about 10k (zip).

---------------------------------------------------------------------
            Automated DHTML menu builder for Zope
---------------------------------------------------------------------

This was done with big help of these softwares:

	* ZHierMenus python sctipts by Ioan
          (www.zope.org product, new javascripts need to pay)
	* HV Menu- by Ger Versluis
          (www.burmees.nl , www.dynamicdrive.com)


Zope menu integration
--------

1. put following files to your virtual "/" folder or Zope root:

File (mime text/javascript): 
	hv_menu_var.js
	hv_menu_com.js

DTML Method:
	hv_menu_tre.js

2. Copy file hv_menu.py to your Zope Extensions folder 
(at your local filesystem /var/zope/Extensions, not in zopedb)

3. Add External Method:
	id:		hv_menu
	ModuleName:	hv_menu
	FunctionName:	hierMenus

4. Add _this_ file that you read just now to your virtual "/" folder
or Zope root, call it as "hv_menu_GO" (DTML Method type)


Using
-------
        * Write <dtml-var hv_menu_GO> at your DTML method
          - it will show you only the same and child levels
        * place DTML Document hv_menu_tre.js at your virtual server root
          - Write <dtml-var hv_menu_GO> at your DTML method
          - and this will show you full site structure at any page

License
-------
        Please read license for Zhiermenu and hvmenu.
        But you could use it freely if you dont want to read licenses.

History
-------
2003-06-30: Initial release

            !!! IMPORTANT !!!
            you need specify in hv_menu.py cell height and width,
            see source code.

Further improvements:
-------
Position is driven by function PosMenu(CntnrPntr,Tp,Lt) in menu_com.js
so we can move menu across page when scrolling


---------------------------------------------------------------------
        Copyright 2003 Jaroslav Lukesh, lukesh`at`k-net.cz
---------------------------------------------------------------------