Closed (fixed)
Project:
Lupus Decoupled Drupal
Version:
1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2025 at 08:22 UTC
Updated:
18 Mar 2026 at 08:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
ciprian.stavovei commentedPull request added ready for review. Also added the entity-rendering.
Output will look something like this now.
Old output:
Comment #5
fagothx. looks pretty good!
Since entity-rendering is working also properly, let's add a test-case for that to show/see that is correctly handling the custom-elements serialization and picking-up the ce-configuration for the entity view modes. Could you extend the test coverage for that ppls?
Comment #6
ciprian.stavovei commentedDone.
Comment #7
fagothx, but you did shortcut the solution. we want things to work without having to force-entity rendering, the View already uses CE-plugins so those should trigger the entity-rendering with the custom-elements-generator automatically (as it is done when you render an entity as part of results). -> it should work without "force".
As noted, let's also include header/footer areas here and add the slots for them when we can use the same codepath? i.e. we probably should have a helper method for handling one area and re-use for header/footer/empty area.
Comment #8
ciprian.stavovei commentedAddressed review feedback
- Extracted buildAreaElements() helper method for shared area processing
- Added header, footer, and empty areas as slots via a unified loop (all three use the same codepath)
- Added header/footer area handlers to the test view config
- Consolidated edge case tests into existing empty-results test methods to avoid extra Drupal bootstraps
- Removed forced CE rendering test — Views CE display plugins handle entity rendering automatically
Comment #9
fagothx, looks great now!
I think there are some small things that need to be taken care of before we can call this done:
* We need to update our default-view component with the new slots, part of nuxtjs-drupal-ce. Please add a PR there to update it.
* Area support header/footer has no test coverage. can we add some simple test covering something there? so it cannot accidenitally break.
* Would be great if you could share some screenshots of working views-output in the frontend, e.g. rendering some node-tease in header/footer?
So setting needs-work for that.
Comment #10
ciprian.stavovei commentednuxtjs-drupal-ce PR: https://github.com/drunomics/nuxtjs-drupal-ce/pull/443.
Test coverage for header/footer areas:
Already included in the MR — tests cover:
- Header/footer slots in JSON and markup responses (page display)
- Header/footer slots on block custom element + rendered output
- Header/footer correctly absent on empty results (area handlers default to not showing on empty)
Here's a screenshot with a node in the header and media in the footer:

Comment #11
ciprian.stavovei commentedComment #12
ciprian.stavovei commentedComment #13
fagoThanks, this seems great!
However, according to
https://api.drupal.org/api/drupal/core%21modules%21views%21templates%21v...
the footer should be below the pager, not above. So this seems to need correction in the vue files. Else this seems good to go.
Comment #14
ciprian.stavovei commentedI updated the nuxtjs-drupal-ce PR: https://github.com/drunomics/nuxtjs-drupal-ce/pull/443.

Also added a new screenshot with the footer under the pager:
Comment #16
fagothx, all good - merged!