[TYPO3-project-formidable] renderlet:IMAGE Define max width inside imageconf
Carlos Meyer
cm at neonblue.de
Tue Dec 23 13:00:25 CET 2008
Hello Rego,
try this:
<renderlet:FILE name="company_logo" label="Logo Firma">
<data targetdir="uploads/tx_txschoolcompanies">
<imageconf>
<userobj><ts><![CDATA[
10 < config.tx_ameosformidable.res.shared.xml.imageprocess.shaded
10.file.50.file < params.relwebpath
10.file.50.file.width = 50m
]]></ts></userobj>
</imageconf>
</data>
</renderlet:FILE>
Regards,
Carlos
-----Ursprüngliche Nachricht-----
Von: typo3-project-formidable-bounces at lists.netfielders.de [mailto:typo3-project-formidable-bounces at lists.netfielders.de] Im Auftrag von Manuel Rego Casasnovas
Gesendet: Dienstag, 23. Dezember 2008 12:48
An: TYPO3 project list for the FORMidable extension
Betreff: [TYPO3-project-formidable] renderlet:IMAGE Define max width inside imageconf
Hello,
I'm trying to define a maximum width in a renderlet:IMAGE.
The expected behaviour should be if an image is bigger than 300px then the image is resized, but if the image is lower than 300px (for example a 100px image) it's NOT resized and it's showed in its normal size.
So, I've tried the next configuration:
<imageconf>
<userobj>
<ts><![CDATA[
10 <
config.tx_ameosformidable.res.shared.xml.imageprocess.normal
10.file < params.relwebpath
10.file.width = 300px
]]></ts>
</userobj>
</imageconf>
And I also tried:
10.file.width = 300m
and:
10.file.maxWidth = 300px
even:
10 < config.tx_ameosformidable.res.shared.xml.imageprocess.maxwh
10.file < params.relwebpath
10.file.maxW = 300px
And nothing works as I'd like. I like to define a maximum not a specific size for all the images.
¿Any idea? I guess that exists any TypoScript option to do that, but I can't find it.
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
More information about the TYPO3-project-formidable
mailing list