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 Asko,

Am 06.12.2014 um 11:24 schrieb Asko Soukka:
> Hi Andreas,
>
> have tried the following methods (included in Plone by default):
>
>     https://pypi.python.org/pypi/plone.app.imaging
>
> e.g.
>
>     img tal:replace="structure context/@@images/image/mini" />
>
> where 'image' is the fieldname.
>
thanks for the hint. I got the first issue fixed. I could display / load
the logo from the eupproject.py now:

<tal:results
                 define="batch python:Batch(results, b_size,
int(b_start), orphan=1);">
<ul class="downloads">
<li tal:repeat="result batch">
<tal:entry
              define="project result/getObject;
             (...)>
(...)
<span class="project-thumb" tal:condition="not:screenshot">
<img tal:condition="project/project_logo|nothing"
         tal:replace="structure project/@@images/project_logo" />
</span>

(...)

Scaling of an image doesn't work yet (see the traceback in my other email).

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.