... show preview-image in newsportlet

by zet — last modified Feb 28, 2012 10:54 AM

Add the follwing snippet in news.pt, right before the closing tag of the newsitem's title:

<img src="" alt=""
 tal:define="item_object obj/getObject;"
 tal:condition="exists:item_object/image_thumb"
 tal:replace="structure python: path('nocall:item_object/tag')(scale='icon',
 css_class='tileImage')" />