Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Wouldn't it be cool to have a area handler which can show any kind of handler?
Assign for myself.
Comment | File | Size | Author |
---|---|---|---|
#8 | 1368478-area-entity.patch | 4.94 KB | dawehner |
#5 | 1368478-area-entity.patch | 4.94 KB | dawehner |
#1 | 1368478-entity-area.patch | 3.75 KB | dawehner |
Comments
Comment #1
dawehnerHere is a first approach for a patch.
Comment #2
dawehnerThis patch was sponsored by Team WD
Thanks!
Comment #3
Blackice2999 CreditAttribution: Blackice2999 commentedThanks dereine! - Works as expected fine.
Comment #4
fagoInteresting idea.
However, why restrict the plugin to the entity type we are listing. We could show any possible entity type there. So shouldn't the plugin work for all entity types (i.e. choose the type first), thus be defined "global" to all base tables?
Comment #5
dawehnerOh i was so dazzled by the symmetry of the data, your idea makes absolut sense.
Comment #6
Blackice2999 CreditAttribution: Blackice2999 commentedThe Patch from #5 works also fine for me. Tested on current dev branch and works! Thanks dereine.
Comment #7
fagoLet's call this "Rendered entity" as in other places too.
hm, that didn't work for me. Some ajax was triggered but nothing gets replaced, so view-modes are not reflected.
Comment #8
dawehnerCorrected the first part.
For me the ajax works fine. The possible view modes are replaced on the bottom maybe you switched between two which just have Default.
Comment #9
fagoNop, I verified I tried it with the right ones.
Anyway, in the meanwhile I have updated my views test installation, now it works!? So maybe it's an issue with old Views versions? Shouldn't be a big deal though, thus committed - thanks! :-)
Comment #10
dawehnerOh i would have never thought that. This kind of #ajax code existed for the field-field handler since 1,5 years.
Thanks for comitting it!