[TYPO3] Image zoom only if width > X
John Angel
johnange at gmail.com
Wed Aug 9 11:20:43 CEST 2006
Hi Dmitry,
styles.content.imgtext.maxW and styles.content.imgtext.maxWInText doesn't do
the work.
The idea is something like this:
tt_content.image.20.1.imageLinkWrap.enable.field >
tt_content.image.20.1.imageLinkWrap.enable = 1
tt_content.image.20.1.imageLinkWrap.enable.value =
{$styles.content.imgtext.maxWInText}
tt_content.image.20.1.imageLinkWrap.enable.isGreaterThan = WIDTH OF CURRENT
IMAGE
It should provide link for zoom if current image is wider than
{$styles.content.imgtext.maxWInText} only.
Regards
John
----- Original Message -----
From: "Dmitry Dulepov" <typo3 at accio.lv>
Newsgroups: typo3.english
To: <typo3-english at lists.netfielders.de>
Sent: Wednesday, August 09, 2006 9:44 AM
Subject: Re: [TYPO3] Image zoom only if width > X
> John Angel wrote:
>> To have image zoom for all pictures, this is the code:
>>
>> tt_content.image.20.1.imageLinkWrap.enable.field >
>> tt_content.image.20.1.imageLinkWrap.enable = 1
>>
>> But how to enable image zoom if picture is wider than X pixels only?
>
> There was a constant somewhere in the constant editor for this. I do not
> remember its name however. There were two of them actually: one for
> maximum width of preview image, another for maximum width of the
> complete image. I usually said first to 450 and second to 2000 (to
> prevent resizing of complete image).
>
> --
> Dmitry Dulepov
> ACCIO Ltd, Latvia
> http://accio.lv/en/
>
> "It is our choices, that show what we truly are,
> far more than our abilities." (A.P.W.B.D.)
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list