In Panopoly 1.x, both the "Content item" and "Content list" widgets were views. In Panopoly 2.x, implementing a "Content list" as a view still makes sense, but we'd like for the "Content item" widget to be a custom plugin, ideally, in CTools, but we could implement our own if necessary.

We need to wait on all the fields and view modes to be available to create the "Content list" view.

We need to check out what's available in CTools before starting on the "Content item" block.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

I think this issue qualifies as being necessary for the MVP, so making a child of #2549709: [meta] Panopoly 2.x for Drupal 8 battle plan

dsnopek’s picture

Or, maybe "Content Item" could be a custom block? It'd just be an entity reference field that renders the item in a particular view mode. Although, then that becomes "reusable" and that really never makes any sense...

Anyway, neither CTools or core has a decent "Content item" widget. We could create our own, I just worry about the reference field. I wonder if Drupal 8 FAPI has a reference field?

dsnopek’s picture

Status: Active » Needs work
FileSize
15.05 KB

Here's the start of the "List of content" view, however, it doesn't totally work because what 'ctools_views' gives us isn't sufficient: we can't keep the whole exposed form in the block configuration. Maybe there's a patch that does that, but the current ctools in Panopoly doesn't :-(

dsnopek’s picture

Hm, it looks like #2657060: Add Configure Filter functionality to block views configuration. is the CTools issue attempting to make using the exposed filters as block configuration, and it looks as though it's no where near a resolution :-/

It might make sense to split this into two issues if it seems like we could finish "Content item" before getting "Content list" working

dsnopek’s picture

Here's a pile of patches that gets "Content list" more working. Actually, it's probably working enough to commit, given that we're still in -alpha. We can make more issues about making it work better :-)

"Content item" still needs to be implemented

dsnopek’s picture

Status: Needs work » Needs review
FileSize
18.93 KB

Here's a patch that also includes a "Content item" block. Not sure this is the best way forward, but it's worth trying and seeing if there's a compelling reason not to do it like this

dsnopek’s picture

FileSize
19.29 KB

This patch fixes a bunch of bugs in the "Content item" block. This is probably good enough to commit an initial version. I'll compare the D7 and D8 versions and create some follow-up issues

  • dsnopek committed effb1e7 on 8.x-2.x
    Update Panopoly Core and Widgets for Issue #2729249 by dsnopek:...
dsnopek’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.