How to display picture thumbnails in content views ?

Hello,

I'd like to display the thumbnails of pictures in a content a view. Here's what I tried :

  • I picked “Generic” in “Advanced Widgets”
  • I chose “Image” as “Widget type”
  • I added two fields for this widget : data.picture.views[3].content and “data.dc.title”

Here's the error :

Cannot convert org.nuxeo.ecm.platform.query.pai.PageSelection@214cd6 of type class org.nuxeo.ecm.platform.query.api.PageSelection to interface org.nuxeo.ecm.core.api.DocumentModel

I thought “data” could get a documentModel from the pageSelection but obviously it doesn't.

Do you know how I could resolve this ?

Thank you for any idea.

Regards

Fabrice

0 votes

0 answers

3346 views

ANSWER