Add Entity view blocks with view mode to use with Layout Builder

Created on 13 May 2024, 6 months ago

Problem/Motivation

Requested by Razem

Paraphrased

As a landing page editor
I want to be able to choose an individual .. content item to be placed in sections
And choose the view mode of it.

As a landing page editor
I want to be able to choose multi-content items to be placed in sections
And choose the view mode of them and number of items, and filters ( sort, ex.. )

Proposed resolution

Using the native CTools Views block in layout builder is so buggy and the query breaks the page.
The style of allowed filters or arguments in CTools Views is not the easy part to work with ( As an Editor or Landing Page Editor )

  • Create a module named Varbase Entity View Block
  • Create a Entity View block type
  • Have a field_entities as an autocomplete entity reference for content ( Any Content Type )
  • Have a field_view_mode with a drop down list to be able to select the view mode for chosen content

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
📌 Task
Status

Needs review

Version

10.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024