You are here

README.txt in Fixed Block Content 8

FIXED CONTENT BLOCKS DRUPAL MODULE
==================================

CONTENTS OF THIS FILE
---------------------

 * Summary
 * Requirements
 * Installation
 * Configuration
 * Usage
 * Related modules
 * Contact


SUMMARY
-------

This module provides a way to create custom content blocks without broken
instances if the block does not exist.

A new block type act as a wrapper for the content block. If the custom block
disappears, this module will re-create it as a new empty block or with a
default content stored in config.

This module solves these typical scenarios:

 * Missing blocks in website staging
 
   No more "This block is broken or missing. You may be missing
   content or you might need to enable the original module.".

   Custom blocks created in your local environment are not ported to other site
   environments (like test, production ...), as a result any reference
   (instance) to them will ends in a "broken block".

   Fixed content blocks are part site configuration, so they are promoted in
   the process of staging.

 * Permanent content blocks
 
   Custom blocks, as content entities, can be deleted. If so, their instances
   will be lost. A fixed block content is always present in any layout
   placement, even if the linked custom block disappears.

Multiple instances of a single fixed block are allowed as usual in D8.


REQUIREMENTS
------------

This module depends on:
  * the custom block core module (block_content)
  * the HAL core module (hal) and serialization to store default block content
    in config


INSTALLATION
------------

Install as usual, see https://www.drupal.org/node/1897420 for further
information. You might rebuild the caches after (un)installation.


CONFIGURATION
-------------

Module configuration is available at Manage -> Structure -> Block layout ->
Custom block library -> Fixed blocks
(/admin/structure/block/block-content/fixed-block-content).


USAGE
-----

As simple as:

 * add a fixed block content
 * create instances when you need it

Set a default content by editing your custom block and going to such link
operation in the fixed blocks list.

Missing custom blocks are automatically created when needed, with default
content if present or empty if no default content established.


RELATED MODULES
---------------

Similar modules:

 * Simple Block
   (https://www.drupal.org/project/simple_block)
   Provides a way for creating static and simple blocks. Only a title and
   a body allowed, config entities are no "fieldable". Simple blocks are
   entirely stored in the site configuration, so cannnot be managed as
   content by editors or non-admin users.

   From the module description: "...lets you define simple exportable blocks
   that have only a title and a formatted text ... unlike the core Block Content
   (block_content), this module stores the blocks as config entities making the
   import/export trivial..."

 * Recreate Block Content
   (https://www.drupal.org/project/recreate_block_content)
   A simpler approach that also solves the broken block content instances. It
   simply creates a new empty custom block when missing with the same IDs but
   with no default content.

Recommended modules:

 * Default content
   (https://www.drupal.org/project/default_content)
   Exports any content entity within the website code. Any new installation will
   start with the exported content.

 * Page manager
   (https://www.drupal.org/project/page_manager)
   From module description: "It supports the creation of new pages, and allows
   placing blocks within that page." So if you need a kind of "fixed pages",
   this module provides that and much more.


CONTACT
-------

Current maintainers:
* Manuel Adan (manuel.adan) - https://www.drupal.org/user/516420

File

README.txt
View source
  1. FIXED CONTENT BLOCKS DRUPAL MODULE
  2. ==================================
  3. CONTENTS OF THIS FILE
  4. ---------------------
  5. * Summary
  6. * Requirements
  7. * Installation
  8. * Configuration
  9. * Usage
  10. * Related modules
  11. * Contact
  12. SUMMARY
  13. -------
  14. This module provides a way to create custom content blocks without broken
  15. instances if the block does not exist.
  16. A new block type act as a wrapper for the content block. If the custom block
  17. disappears, this module will re-create it as a new empty block or with a
  18. default content stored in config.
  19. This module solves these typical scenarios:
  20. * Missing blocks in website staging
  21. No more "This block is broken or missing. You may be missing
  22. content or you might need to enable the original module.".
  23. Custom blocks created in your local environment are not ported to other site
  24. environments (like test, production ...), as a result any reference
  25. (instance) to them will ends in a "broken block".
  26. Fixed content blocks are part site configuration, so they are promoted in
  27. the process of staging.
  28. * Permanent content blocks
  29. Custom blocks, as content entities, can be deleted. If so, their instances
  30. will be lost. A fixed block content is always present in any layout
  31. placement, even if the linked custom block disappears.
  32. Multiple instances of a single fixed block are allowed as usual in D8.
  33. REQUIREMENTS
  34. ------------
  35. This module depends on:
  36. * the custom block core module (block_content)
  37. * the HAL core module (hal) and serialization to store default block content
  38. in config
  39. INSTALLATION
  40. ------------
  41. Install as usual, see https://www.drupal.org/node/1897420 for further
  42. information. You might rebuild the caches after (un)installation.
  43. CONFIGURATION
  44. -------------
  45. Module configuration is available at Manage -> Structure -> Block layout ->
  46. Custom block library -> Fixed blocks
  47. (/admin/structure/block/block-content/fixed-block-content).
  48. USAGE
  49. -----
  50. As simple as:
  51. * add a fixed block content
  52. * create instances when you need it
  53. Set a default content by editing your custom block and going to such link
  54. operation in the fixed blocks list.
  55. Missing custom blocks are automatically created when needed, with default
  56. content if present or empty if no default content established.
  57. RELATED MODULES
  58. ---------------
  59. Similar modules:
  60. * Simple Block
  61. (https://www.drupal.org/project/simple_block)
  62. Provides a way for creating static and simple blocks. Only a title and
  63. a body allowed, config entities are no "fieldable". Simple blocks are
  64. entirely stored in the site configuration, so cannnot be managed as
  65. content by editors or non-admin users.
  66. From the module description: "...lets you define simple exportable blocks
  67. that have only a title and a formatted text ... unlike the core Block Content
  68. (block_content), this module stores the blocks as config entities making the
  69. import/export trivial..."
  70. * Recreate Block Content
  71. (https://www.drupal.org/project/recreate_block_content)
  72. A simpler approach that also solves the broken block content instances. It
  73. simply creates a new empty custom block when missing with the same IDs but
  74. with no default content.
  75. Recommended modules:
  76. * Default content
  77. (https://www.drupal.org/project/default_content)
  78. Exports any content entity within the website code. Any new installation will
  79. start with the exported content.
  80. * Page manager
  81. (https://www.drupal.org/project/page_manager)
  82. From module description: "It supports the creation of new pages, and allows
  83. placing blocks within that page." So if you need a kind of "fixed pages",
  84. this module provides that and much more.
  85. CONTACT
  86. -------
  87. Current maintainers:
  88. * Manuel Adan (manuel.adan) - https://www.drupal.org/user/516420