About This Code
Brief Description:
Dynamic Web Menu (server-side scripting)
Contributor:
Chris Crompton
Category:
HTML, Lotus Formula
Last Modified:
07 Oct 2005
OpenNTF Disclaimer
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
See Sample Database Attached.
This web menu runs entirely server-side -- uses no javascript.
Each menu item is highly configurable -- even the title can be dynamic.
You enter formula language directly onto each menu item form for items such as the link, show children, show, hide, etc.
These menu item configuration values/formulas are stored in a profile doc. The configuration formulas are then computed at run time when the menu is generated on the content form.
You can use style sheets to control the look of the menu and each of the subitems. The menu items can be nested as deep as you want.
THIS APP MAY HAVE BUGS AND IS USED ONLY AS A PROOF-OF-CONCEPT.
Usage / Example
In the sample db, the content is added in the Content View and the menu is configured in the Menu view.
Code Attachments