Layout Builder context selection

Layout Builder Context adds the capability for layout sections and block components for Layout Builder to leverage the Context module to assign visibility to either an entire layout or individual components within them.

This makes it possible to hide all or parts of areas with Layout Builder with any Contexts you come up with. This is intended to drive visibility only. Contexts with Reactions won't have any effect within Layout Builder (at least, not with this module). You could theoretically implement your own Reaction plugins to affect layouts or the blocks within them (see the context.module file for ideas).

Context allows for grouping of several conditions for greater composition of rules than normal block visibility and makes them re-usable. This is useful when you need more dynamic control over what appears on a per user basis. Since condition plugins and context definitions can be created that can inspect user field values or session cookies, this can let you add layouts or block components to a single node that show in one case for some users, and hide them for others. This helps when implementing content personalization, A/B testing, access controlled data, or other advanced scenarios with Layout Builder.

For some ideas of what kinds of Contexts/conditions to create, see the Views Minimum module.

Supporting organizations: 
Developed and sponsored by

Project information

Releases