[TYPO3] getting width of new gifbuilder image for wrap?

Peter Klein peter at umloud.dk
Sun Mar 11 02:40:08 CET 2007


Hi R?.
I haven't tested it with Gifbuilder, but try something like described here:
http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/fun-with-tsfe-part-1-getting-additional-image-imformation.html#c455

--
Peter Klein / Umloud Untd

"R. Germershausen" <rg at macina.com> wrote in message 
news:mailman.1.1173462021.24961.typo3-english at lists.netfielders.de...
> hello. is there any way to get the width of fresh generated gifbuilder 
> image to set the width of a span dynamically?
>
> 25 = LOAD_REGISTER
> 25.meinbild.cObject = IMG_RESOURCE
>   25.meinbild.cObject.file = GIFBUILDER
>   25.meinbild.cObject.file{
>   backColor = #FFFFFF
>   XY = [10.w]+20, 18
>   transparentBackground = 1
>   10 = TEXT
>   10.text.field = nav_title // title
>   10.fontFile = fileadmin/template/fonts/VistaSanReg.ttf
>   10.fontColor = #696767
>   10.fontSize = 12
>   10.offset = 1,8
>   10.niceText = 1
>   10.niceText.sharpen = 10
>   20 = TEXT
>   20.text.field = nav_title // title
>   20.fontFile = fileadmin/template/fonts/VistaSanReg.ttf
>   20.fontSize = 12
>   20.niceText = 1
>   20.niceText.sharpen = 10
>   20.offset = 1,17
>   20.fontColor = #00A0C6
>    30 = IMAGE
>   30.file = 
> fileadmin/template_visionate/images/arrow/main_arrow_double.gif
>   #10.file.width = 759
>   30.offset = [10.w]+10, -1
>
>        }
>    25.meinbild.cObject.stdWrap= LOAD_REGISTER
>    25.meinbild.cObject.stdWrap.typolink {
>             parameter.field = uid
>
>             wrap = <span style="background-image: url(|);" 
> class="menubg_lev2"></span>
>
> ATagBeforeWrap = 1
>             ATagParams.cObject = COA
>             ATagParams.cObject {
>               30 = TEXT
>               30.dataWrap = id="act{field:uid}"
>
>               40 = |*| 0 |*| TEXT
>               40.value = class="last"
>             }
>           }
>
> at wrap = <span style="background-image: url(|);" 
> class="menubg_lev2"></span> i would like to set the width of the image as 
> inline style.
>
> nice weekend to all.. ;-) 




More information about the TYPO3-english mailing list