Problem/Motivation

This is a follow-up to #2820848: Make BlockContent entities publishable. Views integration is needed for the block publishing status.

Proposed resolution

Pretty straight forward Views integration.

Remaining tasks

Implement everything.

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dixon_ created an issue. See original summary.

dawehner’s picture

IMHO this will be added automatically, without any further work.

Manuel Garcia’s picture

I think @dawehner is correct, I've been testing the patch on #2820848: Make BlockContent entities publishable, and playing around with the block_content view, and I am able to show the Publishing status field, and add an exposed filter which works properly, so we may not need to do anything here after all.

Displaying True / False as the options for the exposed filter may not very user friendly, though I'm not sure this should be improved in core.

One thing we could use this issue for is actually including the published column and exposed filter to this view? Just in case we do, or for other people who want to test this, the attached patch adds the published column and exposed filter to /admin/structure/block/block-content.

Custom Block library with published status

Status: Needs review » Needs work

The last submitted patch, 3: views_integration_for-2834555-3.patch, failed testing.

Manuel Garcia’s picture

Status: Needs work » Needs review
FileSize
5.38 KB
1.59 KB

Fixing failing test

Manuel Garcia’s picture

OK this looks like it's more suited for #2834546: UI for publishing/unpublishing block_content blocks so I'm going to take this work over there.

Manuel Garcia’s picture

Please ignore my last patches here, made a lot more progress on #2834546: UI for publishing/unpublishing block_content blocks.

On there admittedly there I did add a bit of views integration (adding the bulk operations actions for publishing/unpublishing blocks), but well its just part of the whole UI of this so why keep them separate...

I think we could just close this and continue to work on there.

Manuel Garcia’s picture

Status: Needs review » Closed (works as designed)