#24

Want a template and contextual links on custom block content rendered outside the Block context in Drupal 8? https://github.com/swentel/block_content_template might be for you. Will sync back to d.o if there's a lot of interest. #drupal #blocks

Comments

Sascha Grossenbacher on Mon, 07/05/2018 - 16:42

The default view mode check is not very nice, views could also be another view mode. I think there is actually a views property when rendering through that

I also still think that there should be a different easily-embeddable entity type should be used for such cases, block_content for example also has render caching disabled because it assumes it is rendered as a block.

swentel on Mon, 07/05/2018 - 16:56

Agree on the first one (but didn't see any property), somewhat on the second, but we needed something quickly :) Created issues to double check on things, but this subtle change has a huge UX impact.

swentel on Tue, 08/05/2018 - 09:55

Oh, didn't know about that. More or less the same approach, but I don't have support for a label (yet), need to look into that. Entity reference support coming soon too :)

Add reply

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
Have you written a response to this? Let me know the URL by sending a webmention.