The info section is perfect for any kind of static text that you want to place in a Panel layout. It can be used for general info, help, warnings and other guides for your editors.
In addition to markdown, you can use KirbyText in your info text, even including images:
For simple sections that are only used once per blueprint, you can use shortcuts. In its most basic form, an
info section consists of the section type as name, and the
text property with the information you want to show.
Keep in mind that the same section name can only be used once per blueprint.
The info section behaves pretty much like the info field. Why do we have both of them? Because both are useful. The info field can be placed in a field grid and is perfect to offer help within a form. The info section can be placed anywhere else, especially in layouts that don't need form fields.
|headline||–||The headline for the section. This can be a simple string or a template with additional info from the parent page.|
|label||–||The label for the section. This can be a simple string or a template with additional info from the parent page.|
The label will be displayed above the info section. You can pass a simple headline as a string or you can provide translations for multiple languages, if you have an international editing team.
You can inject information from the current page into the headline with template placeholders using our query language.
The text can be a simple string, Markdown, KirbyText or HTML. Just like the headline, the text can also be translated. You can also use Kirby's query language to query text from some field or show some other information.
If you want to write multi-line text with paragraphs, you have to use a special YAML syntax for it.
You can disable the infobox theme entirely to show neutral text.
Like conditional fields, sections can be shown/hidden based on the value of a given field (i.e. if a toggle is checked, a select field is at a certain option, etc.).
The condition for displaying the section is set with the
when option. In the
when option you define a field name as the key and the required value of that field. In the following example, the each section type is shown based on a different value of the