项目作者: wearewondrous

项目描述 :
A collection for Drupal 8 paragraphs (www.drupal.org/project/paragraphs). Currently not stable!
高级语言: HTML
项目地址: git://github.com/wearewondrous/paragraphs_types.git
创建时间: 2016-06-22T13:34:53Z
项目社区:https://github.com/wearewondrous/paragraphs_types

开源协议:GNU General Public License v2.0

下载


Deprecated

Will be removed in teh future

Paragraphs types collection

What is it?

This is a collection of paragraphs types for Drupal 8. This module requires the
Paragraphs Module to be installed.

What is in it?

  • Gallery gallery
  • Image image
    • field_image
    • field_figcaption
  • Blockquote blockquote
    • field_body
    • field_blockquote_cite (see MDN Source)
    • field_blockquote_footer
  • Text text
    • field_body
  • Image featured Text
    • field_body
    • field_image
    • field_image_text_layout
  • Video video

To dos

  • convert to field_body in blockquote and image_featured_text
  • convert figcaption, blockquote_footer to text formated
  • add minimal html to figcaption, blockquote_footer

Basics

  • Highly experimental, do not use in production
  • Only for Drupal 8, there will be no backport
  • Currently does not work together with paragraphs demo because of naming collissions

Installation

At the Moment only Drupal Composer projects are supported. Please see the documentation here:
Using Composer to install Drupal packages through Drupal.org

To install this module 4 libraries are needed.

  • dropzone
  • imagesloaded
  • masonry
  • photoswipe

Just add the following to your composer.json file:

  1. {
  2. "type": "package",
  3. "package": {
  4. "name": "enyo/dropzone",
  5. "version": "4.3.0",
  6. "type": "drupal-library",
  7. "dist": {
  8. "url": "https://github.com/enyo/dropzone/archive/v4.3.0.zip",
  9. "type": "zip"
  10. }
  11. }
  12. },
  13. {
  14. "type": "package",
  15. "package": {
  16. "name": "desandro/imagesloaded",
  17. "version": "3.2.0",
  18. "type": "drupal-library",
  19. "dist": {
  20. "url": "https://github.com/desandro/imagesloaded/archive/v3.2.0.zip",
  21. "type": "zip"
  22. }
  23. }
  24. },
  25. {
  26. "type": "package",
  27. "package": {
  28. "name": "desandro/masonry",
  29. "version": "3.3.2",
  30. "type": "drupal-library",
  31. "dist": {
  32. "url": "https://github.com/desandro/masonry/archive/v3.3.2.zip",
  33. "type": "zip"
  34. }
  35. },
  36. {
  37. "type": "package",
  38. "package": {
  39. "name": "dimsemenov/photoswipe",
  40. "version": "4.1.1",
  41. "type": "drupal-library",
  42. "dist": {
  43. "url": "https://github.com/dimsemenov/PhotoSwipe/archive/v4.1.1.zip",
  44. "type": "zip"
  45. }
  46. }
  47. }

then add this git repository:

  1. {
  2. "type": "vcs",
  3. "url": "https://github.com/wearewondrous/paragraph_types"
  4. }

Be sure to have the installer path for libraries set

  1. "web/libraries/{$name}": [
  2. "type:drupal-library"
  3. ]

To install the libraries via composer then type
composer require enyo/dropzone desandro/imagesloaded desandro/masonry dimsemenov/photoswipe

To install the module run
composer require drupal/paragraphs_types