Re: AW: Bugs in ZMS 2.13 Rev 1133

Boris Kaminski <[email protected]> Tue, 10 Aug 2010 15:55:07 +0200
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
If someone else is searching the function to zoom the images on inserting a new "Abbildung" here is the code for the DTML-Methode "bodyContentZMSCustom_ZMSGraphic"
Insert this at the top of the file:

<dtml-if "getObjProperty('imghires',REQUEST)">
  <dtml-if "getObjProperty('img',REQUEST)">
  <dtml-else>
    <dtml-call "setObjProperty('img',createThumbnail (img=getObjProperty('imghires',REQUEST),maxdim=120,qual=95),lang)">
  </dtml-if>
</dtml-if>

You can edit the size of the thumbnail with the maxdim value.

Regard,

Boris Kaminski



> 
> > 2.)
> Dear Boris,
> 
> the image scale functions seem's to gone with ZMS 2.12 (i assume this is related to the changes in the content object model). Afair this still was a topic here with the (partial) "result" that (with the new free object model) ZMS users could program such extended functionality byself. Afair too it should be possible to take the related code parts from older ZMS versions and port it into >=2.12.
> 
> But if there is still someone who wrote or ported this functionality it would be nice to get the code here - i can't believe that there are only a very few users which don't miss that functionality. ;)
> 
> Best regards,
> 
> Niels.
> ---
> http://www.syndicat.com
> 
>