/Alias ODB tree: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
m (Wrong information, with & it opens in a new tab)
(The midas documentation has moved to https://midas.triumf.ca/docs/)
 
Line 1: Line 1:
<div style="column-count:4;-moz-column-count:4;-webkit-column-count:4">
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/odb_keys/#alias /Alias] on the ODB keys page and [https://midas.triumf.ca/docs/develop/features/core_system/web/configuring/#aliases-extra-menu-links Aliases (extra menu links)] on the Web interface: configuring page for the new documentation about the /Alias ODB keys.
* [[Midas_documentation|Midas Documentation]]
* [[Feature_listing|Feature Listing]]
* [[Application_listing|Application Listing]]
* [[Online_Database|Online Database]]
</div>
 
 
== Purpose ==
The ODB <span style="color: purple; font-style:italic;">/Alias</span> tree  provides the user with a way to access other webpages via buttons placed on the [[mhttpd]] [[Status Page]]. It can provide links to external webpages, or symbolic links (short-cuts) to ODB sub-trees.
 
== Creating the /Alias tree ==
The <span style="color: purple; font-style:italic;">/Alias</span> tree is optional, and is not present until [[ODB#Creating ODB keys|created by the user]].
 
 
<div id="Alias-Button"></div>
== Keys in the /Alias tree ==
Any key created under <span style="color: purple; font-style:italic;">/Alias</span> will appear as a button (i.e. '''alias-button''') on the [[Status Page]], with the same name as the key (except as noted below).
 
By default, the clicking of an alias-button in the web interface will load the page in the same tab. To force the display of the alias page in a new tab, an "&" has to be appended to the name of the alias key. The "&" is stripped off the alias name and replaced with an arrow when it appears as an alias-button (see [[#Symbolic Links|example]]).
 
=== External links ===
The following [[odbedit]] commands demonstrate 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"
 
This will cause a button <span style="color: #444444; background-color: #CCCCCC; font-style:italic; font-size: 90; padding:0.25em;
padding-left: 0.5em;padding-right: 0.5em;border:1px solid #808080;border-radius: 5px;margin-bottom:1px;">triumf</span>
on the status page,  Clicking on this alias-button will show the contents of the link in a new frame.
 
=== Links to ODB ===
The <span style="color: purple; font-style:italic;">/Alias</span> tree may also contain a list of symbolic links to any desired ODB location.
 
Create a string under /alias with this contents:
<pre>
?cmd=odb&odb_path=/Programs
</pre>
 
[[Category:ODB Tree]]

Latest revision as of 22:00, 30 October 2026

The midas documentation has moved. See /Alias on the ODB keys page and Aliases (extra menu links) on the Web interface: configuring page for the new documentation about the /Alias ODB keys.