[TYPO3-english] Use field from extension in TypoScript

Jeppe Donslund jd at masters.dk
Mon Oct 25 23:06:02 CEST 2010


Den 25-10-2010 22:47, Jeppe Donslund skrev:
> With an extension I have extended the pages table with an extra field.
> A link field that I now have under Extended in Page properties.
>
> How can I wrap til link around the image selected in Ressource?
>
> I have an idea, but it is absolutely not right.
>
> lib.gfxelement = COA
> lib.gfxelement {
> 5 = TEXT
> 5.field = plugin.tx_mintensiongfxlink_link
> 5.wrap <a href="|"><img src="
> 10 = IMG_RESOURCE
> 10.file.import {
> cObject = TEXT
> cObject.value = dummy.gif
> cObject.override {
> required = 1
> data = levelmedia: -1, slide
> wrap = uploads/media/|
> listNum = 0
> }
> }
> 15 = TEXT
> 15.value = ">
> }
> Kind regards
> Jeppe Donslund

I got the answer my self:

lib.gfxelement = IMAGE
lib.gfxelement {

   file = fileadmin/sitepics/mcu_home_0704.gif
   file.import.data = levelmedia: -1, "slide"
   file.import = uploads/media/
   file.import.listNum = 0
   file.import.override.field = media
   file.params = onlick="alert();"
   stdWrap.typolink.parameter.data = page:tx_mintensiongfxlink_link
}

TypoScript is amazing :-)


More information about the TYPO3-english mailing list