/Custom ODB tree

From MidasWiki
Revision as of 19:56, 30 June 2014 by Suz (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Links

Purpose

The /Custom 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 /Custom ODB tree is an optional tree that may be created by the user.

The optional ODB /Custom 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 /Custom 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