Ad Widget

Collapse

Correction in Documentation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ucs75
    Junior Member
    • Mar 2012
    • 14

    #1

    Correction in Documentation

    Zabbix 2.0 -> Zabbix Manual -> Web interface -> Creating your own theme

    4. Creating your own theme --> Overview --> Step 2

    (emphasis added to incorrect text in section)
    Replace:
    Add your theme to the list of themes returned by the Z::getThemes() method. You can do this by overriding the ZBase::getThemes() method in the Z class. This can be done by adding the following code before the closing brace in classes/include/core/Z.php:

    With:
    Add your theme to the list of themes returned by the Z::getThemes() method. You can do this by overriding the ZBase::getThemes() method in the Z class. This can be done by adding the following code before the closing brace in include/classes/core/Z.php:
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    fixed
    Thanks !

    Comment

    • CeeEss
      Senior Member
      Zabbix Certified Specialist
      • Nov 2007
      • 103

      #3
      Install is 2.0.4 stable

      The Creating your own theme example in the 2.0 manual bears no resemblance to the actual content of include/classes/core/Z.php:

      require_once dirname(__FILE__).'/ZBase.php';

      class Z extends ZBase {

      }

      Inserting the sample public function getThemes() code between the curly braces results in a site config error when reloading the GUI. Can anyone clarify what needs to be done, please?

      ta!

      Comment

      • Pavels
        Member
        • Oct 2011
        • 83

        #4
        CeeEss, the code examples in the manual were wrong. I've corrected them, it should work fine now.

        Comment

        • CeeEss
          Senior Member
          Zabbix Certified Specialist
          • Nov 2007
          • 103

          #5
          Yes, works now - thank you. Q: what's the best way to modify themes? The builtin themes have wildy differing main.css sizes. It used to be relatively easy (pre-2.0.x) to modify a theme when the css was spilt into multiple files. Is there some sort of map available detailing which CSS defs relate to which UI elements?

          cheers

          Comment

          Working...