/Custom ODB tree: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "==== Links ==== <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * MIDAS web server (mhttpd) * </div> == Purpose == The <span style="color...")
 
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==== Links ====
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/odb_keys/#custom /Custom] on the ODB keys page and [https://midas.triumf.ca/docs/develop/features/monitoring_and_control/custom_pages/ Custom pages: overview] for the new documentation about the /Custom ODB keys.
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* [[mhttpd |MIDAS web server (mhttpd)]]
*
</div>
 
== Purpose ==
The <span style="color:purple; font-style:italic;">/Custom</span> ODB tree is required if the user wishes to create [[mhttpd]] custom pages. It contains essential data needed for [[mhttpd]] to display a custom page.  
 
== Creating the /Custom tree ==
The <span style="color:purple; font-style:italic">/Custom</span> ODB tree is an optional tree that may be [[ODB#Creating ODB keys|created by the user]].
 
The optional ODB <span style="color:purple; font-style:italic;">/Custom</span> tree may contain
 
*  links to local external custom web pages created by the user (see below for remote external pages)
*  links to internal webpages
*  images subtree used to specify images for custom pages
If keys are defined in this tree, except where noted below, the names of the keys will appear as '''''custom-buttons'''''  on the [[mhttpd]] Status page. By clicking on one of these ''custom-buttons'', the custom page will be visible in a new frame.  
 
=== Key names in the /Custom tree ===
* The Key name "Status" is reserved (see [[#Replace Status page]]).
* There are two characters that have special meaning if they are the last character of a Key name in the <span style="color:purple; font-style:italic;">/Custom</span> tree :
**    The character "&" forces the page to be opened within the current frame when the ''custom-button'' is pressed. If this character is omitted, the page will be opened in a new frame.
**    The character "!" suppresses the ''custom-button'' from appearing on the main status page (hidden-link).
 
The hidden-link feature can be used to provide external webpages hidden from the user, such as a stylesheet or a file of Javascript functions needed by other custom pages.
 
 
 
=== Example  ===
 
 
 
 
 
 
 
 
 
 
[[Category:ODB Tree]]

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See /Custom on the ODB keys page and Custom pages: overview for the new documentation about the /Custom ODB keys.