Difference between revisions of "ALIAS"

From MidasWiki
Jump to navigation Jump to search
(Created page with "'''Note:''' The /Alias tree is applicable to mhttpd only, and ignored by odbedit. This optional ODB tree provides the user with a way to access other webpages via buttons ...")
 
(Blanked the page)
 
Line 1: Line 1:
'''Note:'''    The /Alias tree is applicable to mhttpd only, and ignored by odbedit.
 
  
This optional ODB tree provides the user with a way to access other webpages via buttons placed on the mhttpd main Status page (hyperlinks prior to Dec 2009).
 
 
 
The ODB /Alias key is not present until the user creates it. It is intended to contain a list of symbolic links to any desired ODB location. Any key created under /Alias will appear as a Button or Hyperlink on the Main Status page, with the same name as the key, except where noted below (e.g. alias links spawned in the same frame).
 
 
By default, the clicking of the alias-button in the web interface will spawn a new frame. To force the display of the alias page in the same frame, an "&" has to be appended to the name of the alias. The & is stripped off the alias name when it appears on the main status page.
 
 
The following code demonstrates creating alias-buttons linking to ODB keys using odbedit :
 
 
odbedit
 
[local:t2kgas:S] mkdir Alias          ***  Create the optional /Alias directory
 
[local:t2kgas:S] cd Alias
 
[local:t2kgas:S] ln /Equipment/TpcGasPlc/Common/ "TPC Common"    *** New frame, no &
 
[local:t2kgas:S] ln /Equipment/TpcGasPlc/Common/ "TPC Common"&"  *** Same frame, with &
 
 
The items preceded by *** are comments
 
 
This would create two identical alias-buttons called "TPC Common". Clicking on the first alias-button TPC Common would open the page in a new frame as shown above; clicking on the second would open it in the same frame. (Two identical buttons have been created for demonstration purposes only. Normally all buttons would be created with unique names.)
 
 
The following code demonstrates how to make a link to an external webpage:
 
 
[local:t2kgas:S] cd Alias
 
[local:t2kgas:S]create string triumf
 
String length [32]:
 
[local:t2kgas:S] set triumf "http://triumf.ca"
 
 
Clicking on the alias-button triumf will show the contents of the link in a new page (see above).
 

Latest revision as of 12:13, 24 July 2013