We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

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

ComponentGUI
TitleExtension API change: html.header and html.top_heading require breadcrumb argument
Date2020-07-17 13:50:42
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.7.0i1
LevelTrivial Change
ClassNew Feature
CompatibilityCompatible - 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 1.7 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.