User Defined Menu: Difference between revisions

m
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
== Operation ==
=== System 1 ===
System 1 has been deprecated and is removed from use in version 8.0.1
In the website root there must exist a file ''CUsermenu.txt'' which contains the user defined menu. When the ''index.html'' is requested by a visitor the file ''CUsermenu.txt'' is read and the items in there form the ''User Defined Menu'' which is explained below. This menu is dynamically used by the website and NOT generated by CumulusUtils. System 1 has been deprecated and is removed from use in version 8.0.1
 
=== System 2 ===
 
==== Items ====
Any menu topic, named other than the standard itemitems, will create a new, user defined, maintop level menu dropdown. ForIf allthe droptop downslevel ''items''name cancontains an underscore, that underscore will be definedreplaced asby a space. follows:
 
The following holds:
#Tab is a valid separator of fields within ''CutilsMenu.def''
#Requires ''About'' as last item and ''Home'' as first
#Requires the following Top Level items in the CutilsMenu.def (Note that Print is optional): <code>Home, ToggleDashboard, Reports, Graphs, Records, Extra, Misc, About</code>
#The order of items between Home and About is arbitrary
 
<br/>For all drop downs ''items'' can be defined as follows:
 
Item <name> <type> <destination> EndItem
This Item definition line has space separated words.
 
The <name> is what you will see in the menu and may consist of one or more words. If(no <name> is a valid filespec on the seerver or a valid URL, it will display the contents of that filespec or URL. It is intendedneed to beuse usedan as a specification for a small images to be displayedunderscore in the menu. It is the users responsibilityname to havecreate a correct filespec or URLspace). No validation is done other than:
 
If <name> is a valid filespec on the seerver or a valid URL, it will display the contents of that filespec or URL. It is intended to be used as a specification for a small images to be displayed in the menu. It is the users responsibility to have a correct filespec or URL. No validation is done other than:
 
#<name> starts with <code>'./' OR '../'</code>
Example lines are shown at the bottom of this page and in the distribution file ''CutilsMenu-example-for-use.def''
 
ErrorErrors recoveryare shown in case of errors isthe presentlogfile. System 2 however cannot validate against the real world so while developing your menu: be precise or be prepared to rerun if your menu looks garbled. Garbage in is garbage out.
Files for System 2 are available in the distribution.
 
Garbage in is garbage out.
Error recovery in case of errors is present. System 2 however cannot validate against the real world so while developing your menu: be precise or be prepared to rerun if your menu looks garbled. Garbage in is garbage out.
 
== Output ==