[TYPO3] getting width of new gifbuilder image for wrap?
Christopher Torgalson
bedlamhotel at gmail.com
Fri Mar 9 19:04:43 CET 2007
Hi,
On 3/9/07, R. Germershausen <rg at macina.com> wrote:
> 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.. ;-)
I haven't tested it yet, but there /should/ be a way in TYPO3 4.1 [1]
for exactly this reason. The 4.1 version of the TSref is not on
typo3.org yet, but you can check the original feature request [1] and
the core list archive [2] for details.
--
Christopher Torgalson
http://www.typo3apprentice.com/
[1] http://bugs.typo3.org/view.php?id=4006
[2] http://lists.netfielders.de/pipermail/typo3-team-core/2007-January/006764.html
More information about the TYPO3-english
mailing list