Werk #11256: Extension API change: html.header and html.top_heading require breadcrumb argument

Component User interface
Title Extension API change: html.header and html.top_heading require breadcrumb argument
Date Jul 17, 2020
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0i1
Level Trivial Change
Class New Feature
Compatibility Compatible - no manual interaction needed

This change is only relevant in case you have custom GUI extensions that implement custom HTML pages.

In case you do this, it is likely that you use the html.header or html.top_heading methods. Once upgrading to 2.0 you will have to update your code to hand over a breadcrumb as second argument.

This can be done like this:

from cmk.gui.plugins.main_menu.mega_menus import (
    make_simple_page_breadcrumb,
    MegaMenuSetup,
)

title = "My custom page"
html.header(title, make_simple_page_breadcrumb(MegaMenuSetup, title))

For more examples have a look at our code and search for the keyword breadcrumb.

To the list of all Werks