-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
I think when we create templates, we should not only create the XML and an empty Twig template, but integrate a sample HTML directly into the Twig template.
To do this, we should set a default template for each content type, which is only used in the template.
Examples can be taken one-to-one from the documentation.
Example:
If you select ‘single_media_selection’ as the content type.
The command then writes to the XML.
<property name="document" type="single_media_selection">
<meta>
<title lang="en">Document</title>
</meta>
</property>and adds the following to the twig template.
{% set image = content.image %}
<img src="{{ image.thumbnails['400x400'] }}" alt="{{ image.title }}" title="{{ image.description|default(image.title) }}">- Account selection
- Block
- Category selection
- Checkbox
- Collection selection
- Color
- Contact account selection
- Contact selection
- Date
- Datetime
- ImageMap
- Link
- Location
- Media selection
- Number
- Page Selection
- Phone
- Resource locator
- Route
- Select
- Single Account selection
- Single Category selection
- Single Collection selection
- Single Contact selection
- Single Media selection
- Single page selection
- Single Select
- Single Snippet Selection
- Smart content
- Snippet Selection
- Tag Selection
- Teaser Selection
- Text area
- Text editor
- Text line
- Time
- URL
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request