automationvef.blogg.se

Blueprint title templte
Blueprint title templte








blueprint title templte

If you want to customize your own type, it is possible by extending these classes and passing your own classes here. These classes will together define the behavior for your type. Index: 'Grav\Common\Flex\Types\Generic\GenericIndex' Object: 'Grav\Common\Flex\Types\Generic\GenericObject'Ĭollection: 'Grav\Common\Flex\Types\Generic\GenericCollection' If they are not provided, Grav will use the following default configuration: config:

blueprint title templte

Object, collection and index take class names. Directory also has it's default ordering and search functionality. Additionally, you can configure the storage layer to best fit your needs. You can use your own object, collection and index PHP classes to add your own behavior. Config > Dataįlex Directory is highly customizable. Data storage on the other hand defines how the data will be stored. The latter defines fields displayed inside admin list view. There are two mandatory sections in the configuration: and. Storage: user-data://flex-objects/contacts.json The minimum configuration looks something like this: # Flex Configuration It contains data, admin and site sections. ConfigĬonfig section is the most complicated part of Flex Blueprint, though a lot of it is just to allow customization. We can do both of those inside config section. There is still two things that needs to be done to make the Directory to work: we need to configure the data storage layer and define the fields to display in the Admin List view. Make sure objects you have already saved are compatible with the new version of the blueprint - meaning that you should be able to both save and display the older objects. WARNING: Be careful when you modify a blueprint for existing Flex Type. Think it as a form that is displayed to the administrator. This is the main blueprint for every object in your directory and it should contain all the fields defined in the object. The form looks the same regardless if it was taken from a page or from a configuration, plugin or theme blueprint file. In our contacts example the form section looks like this: # Flex Object Form Also do not pass process section of the form to this file, it will not be used by Flex. WARNING: It is better not to use the simple list format to describe the fields as described in Create a simple single form.










Blueprint title templte