Theming in Paragraphs for Drupal 8

Theming

The default paragraphs template is in paragraphs-item.html.twig.
It uses theme suggestions for other templates, the following suggestions are available:

  • paragraph__[view_mode] (e.g. paragraph--default.html.twig)
  • paragraph__[type] (e.g. paragraph--image.html.twig)
  • paragraph__[type]__[view_mode] (e.g. paragraph--image--default.html.twig)

How to start with Paragraphs for Drupal 8

How to start in Drupal 8

  1. Create Paragraph Types (bundles in D7) add admin/structure/paragraphs_type
  2. Create a Entity Reference Revisions field on the node/entity type, like admin/structure/types/manage/page/fields for the Basic Page type of node or admin/structure/block/block-content/manage/basic/fields for blocks.
  3. Select "Paragraphs" at the field "Type of item to reference" and select a nice "Allowed number of values", "unlimited" is the best option for Paragraphs
  4. Select "Paragraphs" in the field "Reference method"

Paragraphs in Drupal 8

Drupal 8

A Drupal 8 version has been created, the alpha2 version is working with Drupal 8 beta 4. We try to keep the 8.x-1.x-dev branch compatible with the Drupal 8 HEAD. It currently has the same functionality as the Drupal 7 module.

The Drupal 8 version has been a complete rewrite of the module. It is now based on the Entity Reference Revisions module which is in core. Paragraphs defines:

Drupal 8 installation on Windows using XAMPP

This is a beginner guide for installing Drupal 8 on Windows using XAMPP. This document shows a step by step approach with screenshots for newbies.

Mobile detect - drupal 8

drupal 8 module for detect mobile devices.

This is a lightweight mobile detection based on the Mobile_Detect.php library.
github link: mobile_detect

PHP examples


Check type device

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8