Info section
Add help text and info boxes to the Panel to help your editors
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.
Example
Using KirbyText
Since 3.3.0
In addition to markdown, you can use KirbyText
in your info text, even including images:
Section shortcuts
Since 3.3.0
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.
Info section vs. info field
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.
Section properties
Name | Type | Default | Description |
---|---|---|---|
headline | – | The headline for the section. This can be a simple string or a template with additional info from the parent page. | |
text | – | ||
theme | string |
– |
Headline
The headline 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.
Single language
Multiple languages
Placeholders
You can inject information from the current page into the headline with template placeholders using our query language.
Text
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.
Single language
Multiple languages
Multi-line text
If you want to write multi-line text with paragraphs, you have to use a special YAML syntax for it.
Text queries
Themes
info
negative
positive
Disable theming
Since 3.3.4
You can disable the infobox theme entirely to show neutral text.
Conditional sections
Since 3.2.0
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 postType
field: