Git Product home page Git Product logo

blockreference's Introduction

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 themeing 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.
  • Block configuration visibility settings are respected. If a referenced block does not appear when viewing a node, check the block's visibility settings on /admin/structure/block. Note that visibility settings are evaluated regardless of whether the block is assigned to a region.

Issues

Bugs and Feature requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/blockreference/issues

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

blockreference's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.