Re: Dexterity - TAL Expression to Display Images from Blobstorage

Andreas Mantke <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Hi Espen,

Am 08.12.2014 um 10:29 schrieb espen:
> Hi
>
> I think you need to use another syntax for a dexterity image field:
> Try this:
>
>  <img src="" alt=""  
>      tal:condition="context/image|nothing"
>           tal:define="scales context/@@images;
>           scale python:scales.scale('image', 'mini')"
>            tal:replace="structure python:scale and
> scale.tag(css_class='myImage') or None" />
>   
> Where ‘image’ is the name of your image field (if your field has
> another name, it would be something like:
>           scale python:scales.scale(‘my_image', 'mini')"
>
thanks for the code snipped. It works now. The major issue seemed to be
the imaging framework. Something goes wrong (not all necessary libs
installed or found by Pillow at compile/configuration time) during my
last buildout. I run a clean buildout and it works.

Kind regards,
Andreas

-- 
## Developer LibreOffice
## Freie Office-Suite für Linux, Mac, Windows
## http://LibreOffice.org
## Support the Document Foundation (http://documentfoundation.org)
## Meine Seite: http://www.amantke.de

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.