When creating a new content type the display of the teaser should be correct. This means the image should be on teh left and not printed as part of the body.

Solution:
Exclude the image from the {{ content }} and make it is printed in the twig block {% card_image %}

Note: all image fields now a an unique name which makes it hard to predict how the image field of a new content type is going to be named. Can we improve this naming or do something smart here?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

maikelkoopman created an issue. See original summary.

maikelkoopman’s picture

Version: 8.x-1.0-rc3 » 8.x-1.x-dev
Status: Active » Needs review
FileSize
4.25 KB

Pull request here: https://github.com/goalgorilla/open_social/pull/550
It is a temporary solution. We are looking into other ways later as an improvement. At least this solves the most urgent cases.

bramtenhove’s picture

Status: Needs review » Fixed

Thanks Maikel, I just merged your (updated, see pull request) changes.

  • maikelkoopman committed 303f8a8 on 8.x-1.x
    Issue #2875334 by maikelkoopman: display image field default for new...
  • 8ec5437 committed on 8.x-1.x
    Merge pull request #550 from goalgorilla/feature/2875334-new-content-...
  • maikelkoopman committed fb37073 on 8.x-1.x
    #2875334 by maikelkoopman: add correct support for new content teaser...

Status: Fixed » Closed (fixed)

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