Skip to content

LayoutImage #93

@adgad

Description

@adgad

LayoutImage

In Content Tree right now, we have a node called LayoutImage - described as :

LayoutImage is a workaround to handle pre-existing articles that were published using tags rather than images. The reason for this was that in the bodyXML, layout nodes were inside an tag, and that didn't support publishing .

I think in Spark, we do publish these as ImageSets with Images - however in the bodyxml we're publishing an <img> tag, like:

<img alt=\"\" data-copyright=\"© AFP via Getty Images\" data-image-type=\"image\" longdesc=\"\" src=\"https://d1e00ek4ebabms.cloudfront.net/staging/14703d45-9403-445a-85cd-7c57799aac59.jpg\"/>

This means that we won't be able to convert these into "proper" responsive images, and will have to keep these weird LayoutImage things.

Possible Solutions

  1. Define LayoutImage in the schema
  • this is kind of how it currently works in CP
  1. Publish them as RawImage (Add RawImage support #102) using the cloudfront URL
  2. Republish all of them from Spark, and include the data-imageset-id attribute so the can be migrated
  3. Add Layouts to bodyXML, republish these as regular <ft-content> imagesets ( see "Layout" Nodes (again) #106 )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions