[TYPO3-dev] how to introduce TYPO3 parameters for markers
Stefan Geith
typo3dev at geithware.de
Tue May 2 10:04:50 CEST 2006
Franz Holzinger schrieb:
> thanks but how does this help in my case?
> I want to have 2 markers ###PRODUCT_IMAGE1### because the same image
> shall be drawn here.
> And for each marker with this same name I need different parameters.
> I think it would not be helpful if the same image got different marker
> names.
In my plugins (using sg_zfelib) I created a TS-Part to define
different Types of images (e.g. s, m, l etc.)
Then I render each Image for each defined size.
e.g.:
image.s {
conf.file.maxW = 160
conf.file.maxH = 140
conf.imageLinkWrap = 1
conf.imageLinkWrap {
...
}
}
image.m {
imgWrap = |<br />
implode = - - -<br />
allWrap =
conf.file.maxW = 320
conf.file.maxH = 280
}
image.l {
imgWrap = |<br />
implode = - - -<br />
allWrap =
conf.file.maxW = 640
conf.file.maxH = 560
}
Would render
###PRODUCT_IMAGE1_S###
###PRODUCT_IMAGE1_M###
and
###PRODUCT_IMAGE1_L###
-
Stefan
More information about the TYPO3-dev
mailing list