Allow custom rendering of inline images

Description

Background

Inline images need a custom rendering in some templates. We want to provide this feature in the default template.

Requirements

  • Implement

  • File object should be passed to the template instead of the storage id (gregware needs an object and the file name is also needed)

  • Classes must be passed to the template, because sometimes the view is changed based on classes

  • Provide documentation for integratedfordevelopers.com about how to implement a template

  • Provide documentation for integratedfordevelopers.com about how to implement a listener

Implementation requirements

  • Allow customized rendering of images, but in the future also other inline items (video, objects, ins items, etc)

  • Full customization need to be possible: resize the image to the required size, but a lightbox around it, etc.

  • You need to be able to define the view in your template

  • When no view is available the default template has to be used

  • An example of the presentation need to be added in the default article view of the IntegratedWebsiteBundle:

Image rendering requirements for default template

  • Max with of 1140px

  • Max height of 600px

  • class="img-responsive center-block"

  • title = image description

  • alt = image title

Technical tasks

None

Deployment actions

None

Activity

Show:
Maartje Wessels-Wouda
May 2, 2017, 1:23 PM

Aantal uur aangepast aan de SP schatting, aangezien deze nu door team B wordt opgepakt.

Jeroen van Leeuwen
May 3, 2017, 1:06 PM

some minor points.

Marijn Otte
May 4, 2017, 7:41 PM
Jeroen van Leeuwen
May 9, 2017, 1:04 PM
Edited

can you merge the two Github PR's?

Gerben Bosch
May 19, 2017, 8:20 AM

issue blijkt niet goed afgetest en daarnaast is blijkbaar in de editor niet te zien hoe de afbeelding in het artikel erbij komt te staan

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure