User Defined Menu: Difference between revisions

1,296 bytes added ,  17:48, 19 October 2022
m
Line 14: Line 14:


=== System 2 ===
=== System 2 ===
In the utils directory there must be a file ''CutilsMenu.def'' in the utils directory. The default contents of this file as delivered in the distribution is :
In the utils directory there must be a file ''CutilsMenu.def''. If this file is not present you get the default menu. The default contents of this file as delivered in the distribution is :


   Home;
   Home
   About;
 
   Reports;
   About
   Graphs;
    Item Test1 External <nowiki>https://waterinfo.rws.nl/#!/kaart/waterhoogte-t-o-v-nap/</nowiki> EndItem
   Records;
    Item Test2 Internal <nowiki>https://embed.windy.com/embed2.html?lat=53.2589&lon=6.9314&detailLat=47.339&detailLon=6.812&width=1000&height=700&zoom=5&level=surface&overlay=temp&product=ecmwf&menu=&message=true&marker=true&calendar=now&pressure=true&type=map&location=coordinates&detail=&metricWind=km%2Fh&metricTemp=%C2%B0C&radarRange=-1</nowiki> EndItem
   Extra;
    Item Test3 Report tagtest EndItem
   Misc;
 
   Toggle Dashboard;
   Reports
   Graphs
   Records
   Extra
   Misc
   ToggleDashboard


You recognize the standard menu of CumulusUtils.  
You recognize the standard menu of CumulusUtils.  
From version 6.12 the menu runs from left to right (as before it went from right to left). Also in version 6.12 the user can only change the order of the menu items by changing the place of the item in the file.
From version 6.12 the menu runs from left to right (as before it went from right to left).  
Future versions will have the possibility to add items to the standard menu, it will never be possible to remove items from the standard menu. Standard items can only be configured through ''cumulusutils.ini''. This page will reflect the changes.
 
User items can be added  to the standard menu as is indicated above. While generating the website this menu will be incorporated. The System 1 menu will be generated in addition to System 2 (i.e. those items will be on the rightmost side of the menu)
 
==== Item ====
Any menu topic named other than the standard item will create a new, user defined, main menu dropdown. For all drop downs items can be defined as follows:
 
  Item <name> <type> <destination> EndItem
 
The <name> is what you will see in the menu
The Type can be of :
 
#'''External''': The URL given as destination will be opened in a new window or new tab besides CUtils
#'''Internal''': The URL given as destination will be opened in the ReportView, the large viewport on the right side of the dashboard. It is implemented as an Iframe which is generated to the standard demands of Cutils
#'''Report''': Any UserReport of Cutils or any other legitimate HTML/Javascript file similar to the standard reports and charts. The destination is a textfile name : ''filename.txt''
#'''Image''': Not implemented yet
 
The example in the distribution contains three example lines.


Both files for System 1 & 2 are available in the distribution.
Both files for System 1 & 2 are available in the distribution.