9/19/2023 0 Comments Save and reuse text blocksThis is perfect to combine WYSIWYG content with custom HTML, Kirbytext or Markdown. galleryĪ list of images to create galleries of all sorts headingĪ plaintext HTML/markdown/kirbytext block. Text: Write something great… Block types codeĪn inline code block for code snippets and examples. You can also set multiple default block entries: fields: Text: Write something great… Multiple block types type: text Default block with content fields: The type property is required, but default blocks can be empty or filled with example content. You can set default blocks/values for blocks fields which will prepopulate the field using the default prop. With very long list, you might want to close groups of blocks that are used less frequently with the open: false option: fields: To create such groups, use the Blocks field's generic "group" block type: fields:īy default, all groups are open. This is particularly useful when your blocks lists gets longer once your start creating your own custom blocks. You can group block types in the block selector for a better overview of the available options. To change the order of available blocks, list them manually with the fieldsets option: fields: However, you can fully customize the selector for new block types with sorted block types and groups. Available widths: 1/1, 1/2, 1/3, 1/4, 2/3, 3/4īy default, the block selector shows a single list of available block types in alphabetical order. The width of the field in the field grid. This is only relevant in multi-language setups.Ĭonditions when the field will be shown (since 3.5.1) If false, the field will be disabled in non-default languages and cannot be translated. If true, the field has to be filled in correctly to be saved. The field label can be set as string or associative array with translations If true, the field is no longer editable and will not be savedĬustomize the default text when the blocks field is emptyĭefines the allowed block types in the blocks field. Only the first field with this property gets focus.ĭefault value for the field, which will be used when a page/file/user is created Sets the focus on this field when the form loads.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |