Usage in the Template
This is how you add the content-type to a template:
Usage in the UI
The developer is now able to add pages, articles etc. The dropdown can differ depending on the installed bundles.
On the right side of the content-type there is another dropdown which can be used by the developer to provide different visual styles.
The data for each of this types of teaser will be editable in the "Excerpt & Categories" tab. The teaser consists of the following properties:
- One (or no) media
- More-link text
Each of this values can be overwritten locally where it has been added.
In the Twig template the developer can rely on a "strict" datastructure no matter which kind of content was selected by the editor.
As i mentioned in the first part of this post this content-type is easily extensible. If you have custom content to be integrated in the teaser selection you can follow the Cookbook entry for "Provider for Teaser-Selection".