https://github.com/backdrop-contrib/blockreference
Allows a block to be displayed as the content of a field on your Backdrop CMS website.
https://github.com/backdrop-contrib/blockreference
backdrop backdropcms blocks cms fields php
Last synced: 10 months ago
JSON representation
Allows a block to be displayed as the content of a field on your Backdrop CMS website.
- Host: GitHub
- URL: https://github.com/backdrop-contrib/blockreference
- Owner: backdrop-contrib
- License: gpl-2.0
- Created: 2017-12-05T08:08:38.000Z (about 8 years ago)
- Default Branch: 1.x-2.x
- Last Pushed: 2024-08-30T19:22:56.000Z (over 1 year ago)
- Last Synced: 2025-02-10T13:18:49.416Z (11 months ago)
- Topics: backdrop, backdropcms, blocks, cms, fields, php
- Language: PHP
- Homepage: https://backdropcms.org/project/blockreference
- Size: 109 KB
- Stars: 0
- Watchers: 12
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Block Reference
===============
Defines a field type Block reference which creates a relationship to a block
and allows the block to be displayed as the content of the field.
Installation
------------
- Install this module using the official Backdrop CMS instructions at
https://backdropcms.org/guide/modules
- Create a new blockreference field on any fieldable entity (node,
taxonomy_term, etc.)
Theming
-------
To assist in theming blocks that are displayed using the block reference
module, the block reference element is available in the $variables array in
template_preprocess_block().
The element can be found at:
$variables['elements']['#blockreference_element']
Note that the element will not be there for non-blockreference blocks so you
should first check the existence of the element before using its contents.
Notes
-----
- Relationships are saved using the block's `delta` + `module`.
Issues
------
Bugs and Feature requests should be reported in the Issue Queue:
https://github.com/backdrop-contrib/blockreference/issues
Current Maintainers
-------------------
- [Martin Price](https://github.com/yorkshire-pudding) - [System Horizons](https://www.systemhorizons.co.uk)
- Collaboration and co-maintainers welcome!
Credits
-------
- Ported to Backdrop CMS by opi (https://github.com/opi).
- Originally written for Drupal by DanielB (https://www.drupal.org/u/danielb) and rudiedirkx (https://www.drupal.org/u/rudiedirkx).
License
-------
This project is GPL v2 software. See the LICENSE.txt file in this directory for
complete text.