Closed alinaboghiu closed 1 year ago
Gallery and Images also have a fixed display type, of immersive and showcase respectively. This is not controlled in composer, and instead is based on the content type. So including this logic here.
If the large main media designs of Gallery
and Picture
are defined by Design
, do we need to set immersive or showcase?
If the large main media designs of
Gallery
andPicture
are defined byDesign
, do we need to set immersive or showcase?
I really think we should, as this is more semantic. I think it's a cleaner way of indicating what the intention in the tools is. Otherwise we would be coupling the design type to the display in DCR and if that were to change it would be much harder to unpick. i.e. if we don't do this, we's have to pass the design type into the "decideDisplay" logic which is not nice
What does this change?
Why
In DCR we use Design, Display and Theme to render the content, and Image articles are no exception. This was probably missed when the initial list of design types was created.
Gallery and Images also have a fixed display type, of immersive and showcase respectively. This is not controlled in composer, and instead is based on the content type. So including this logic here.