Useful Links:

Introducing...

NagVis is a visualization addon for the well known network managment system Nagios.

NagVis can be used to visualize Nagios Data, e.g. to display IT processes like a mail system or a network infrastructure.

Associate CSS file with HTML gadgets

1

The possibility to have HTML Gadgets is great but they currently lack support for CSS (except inline).

It would be great if an CSS file could be associated with one or more gadgets and loaded once for each page where at least one of these gadgets is present.

While rendering development easier it would also allow for easy customization of the plugins display beyond its options.

Unfortunately gadgets have no calling interface nor (as far as I know) the requirement to load gadget_core in the beginning. With one of these requirements one could have added an interface to query for the CSS file without actually dooing the gadget work, which would be the cleanest way. The main advantage being that gadget functionality could be added in th efuture without breaking the compatibility.

One may think if it is worth breaking gadget compatibility adding such an interface. Alternatively this could be done by changing the extention to something like .ghp (gadget php) meaninf that this is a gadget with interface which would not break the compatibility.

Another possibility would be to add a .cfg file for gadgets but a calling interface cwould be cleaner and faster.

If the ".ghp" way would be chosen I would suggest to change the gadget core to a gadget class and make gadgets derive from that class. With that it would be very easy to add or modify basic functionality of gadgets.

You have the option to support ideas and featues by donating.

Features with donations will get more attention and will propably be implemented faster.

Not logged in. Please register and/or login to support a feature.

How the supporting system works

You as a supporter of a feature specify one or several things you like to give to the solver for getting the feature request solved. It can be for example a bunch of coins but some developers migth also be happy about some beer donations ;-).

Posting your donation to a feature is seen as a willigness to support this feature. It is no binding offer. Once the feature gets targeted to be solved, we will contact you with more details.

Author: gaston · Date: 2014-08-08

Comments

Actually have to extend the idea as I detected that gadgets are inside an <a> tag with text-decoration underline which one cannot get rid of via CSS when outputing text in the HTML gadget.

So it would be great to have the main parent enclosing tag of the gadget (be it the <A> tag or a parent of it) have a gadget private class assigend, like class="gadget_gagetname". The "gadget_" would avoid any colision, and gadget_name would be replaced by the actual gadget name. Alternatively one could add a setting to the gadget in the nagvis configuration allowing to add a class name.
Author: gaston · Date: 2014-08-08

New comment