Required version: 1.1.9i3
December 16. 2010
Display Options - useful for embedding
It is not difficult to embed a Multisite view into another web
application. Since Multisite makes use of frames, the actual view
in the right frame has its own URL - independent of the sidebar.
So just browse to the view in question and copy the URL of the view
frame.
When you want to embed such a view into another application (or
for example want to create a dash board constructed out of
multiple Multisite views) then you'll soon want to customize
the appearance of the view - e.g. by removing the header,
footer, buttons or whatever.
As of version 1.1.9i3 this is now possible
by passing the HTML variable display_options along
with the URL of the view. Just append a &display_options=....
to the URL.
The value of display_options is a list of characters.
Lower case characters turn off a class of output, upper
case letters turn them on.
Unspecified option defaults are calculated as follows:
- If all given display_options are upper case, assume all not given values default to lower-case
- Vice versa when all display_options are lower case. All not given values default to upper-case
- When the display_options are mixed case assume all unset options to be upper-case
Here is the table of available display options:
| Option | Parts being displayed by that option |
| h | the HTML header and body-tag (containing the tags <HTML> and <BODY>) |
| t | the title line showing the header and the logged in user |
| b | the blue context buttons that link to other views |
| f | the tab for using filters |
| c | the tab for using commands and all icons for commands (e.g. the reschedule icon) |
| o | the view options number of columns and refresh |
| d | the Display tab, which contains column specific formatting settings |
| e | the tab for editing the view |
| z | the footer line, where refresh: 30s is being displayed |
| r | the auto-refreshing in general (browser reload) |
| s | the playing of alarm sounds (on critical and warning services) |
| i | all hyperlinks pointing to other views |
| x | all other hyperlinks (pointing to external applications like PNP, WATO or others) |
| m | New in 1.1.11i2: If this option is not set, then all hyperlinks are targeted to the HTML frame with the name main. This is useful when using views as elements in the dashboard. |
| l | New in 1.1.11i4: Enables/Disables the column title links in multisite views |
| w | New in 1.1.12b1: Enables/Disables the limit and livestatus error message in views |
So if you want to display the context buttons and internal and external links - for example - append
a &display_options=bix to the URL. If you want just the plain data table to be displayed but
keep internal links in function, append a &display_options=I.