Tassos Koutlas talks about Drupal 8 and Paragraphs module at the Drupalcamp London 2016. Paragraphs module provide an innovative way to create rich content on the web. Although available for a couple of years for Drupal 7, Paragraphs module, really shines in Drupal 8 coupled with the power of twig templating engine, the ability to create view modes from the UI and Entity API in core.
7. Setup running:
git clone https://github.com/tassoskoutlas/drupalcamplondon2016.git
cd drupalcamplondon2016 && ./init.sh
8. Different functionality per branch
git branch -vva
01-Create_a_custom_paragraph_type_and_templates
02-Create_an_entity_reference_component
03-Create_a_view_display_component
Checkout branches to get more features:
git checkout BRANCH && ./init.sh
21. LET'SEXTENDTHISFURTHER
The blockquote element represents content that is
quoted from another source, optionally with a citation
which must be within a footer or cite element, and
optionally with in-line changes such as annotations
and abbreviations.
- 4.4.4, The blockquote elementHTML5.1
22. BLOCKQUOTESTRUCTURE
We would need to replicate the following structure
<blockquote>
<p> The text of the quote.</p>
- <cite>Tassos Koutlas</cite>
</blockquote>
27. But we want this:
<blockquote>
<p> The text of the quote.</p>
- <cite>Tassos Koutlas</cite>
</blockquote>
28. POWEROFTWIGANDD8
Everything is a template
Everything is overwritable
Every entity gets a template
Every bundle gets a template
Every view mode gets a template
45. WHATISMISSING
Views field formatter orginate from D7 where views
weren't entities.
List all available views displays and pick one.
What if you could pick a display from the
referenced view?