![]() The “type” mapping expects a string with entity type. Each mapping must contain “type” and “bundles”. If this option is not used, the custom component will be available on all content types and bundles, where the Layout Canvas is available.Įxpected format - sequence of mappings. We recommend using images up to 250kb in size.Ĭustom components can be limited to be available only on specific Content Entity types and bundles of those entities. Large resolution files might negatively affect editorial experience. Supported file formats are PNG, JPG/JPEG, BMP, GIF, WebP and SVG (tested with latest Google Chrome browser version at the time of writing, supported image formats may be affected by the browser). Expected format - string that contains the filename of the preview image, relative to the location of the definition file. This property is used to load a preview image in the Sidebar Browser. If the available category options are unknown, the safe default option is cpt_cat_uncategorized as this will work with any set of category entities. ![]() The list of available categories is visible in the “Component categories” list on the “/admin/cohesion/components/categories” page.Įxpected format - string that contains the machine name of a category. If the specified category doesn’t exist, the component will be placed into the default “Uncategorized” category. This property is used to define what category the custom component should be assigned to. Name: Example custom component title category (required) This value is used when displaying the custom component in the Sidebar Browser, Layout Canvas and other areas of Site studio.Įxpected format - string with the human readable name. This property is used for setting the custom component name.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |