[Typo3] TS:better solution?
Christopher
bedlamhotel at gmail.com
Thu Dec 15 16:59:32 CET 2005
On 12/15/05, Nikolas Hagelstein <hagelstein at hauptsache.net> wrote:
> Hi,
>
> have a look at:
> ---
> img_org=IMG_RESOURCE
> img_org {
> file.import = uploads/tx_templavoila/
> file.import.current = 1
> file.import.listNum = 0
> file.maxW = 170
> file.maxH = 50
> }
>
> img= IMG_RESOURCE
> img {
> file=GIFBUILDER
> file {
> XY=170,50
> 10=IMAGE
> 10.file.import.cObject < img_org
> 20 = IMAGE
> 20.file = fileadmin/templates/images/rot.jpg
> 20.mask = fileadmin/templates/images/mask.jpg
> }
> }
>
> 5=LOAD_REGISTER
> 5.img_org.cObject<img_org
> 5.img.cObject<img
>
> html_img=TEXT
> html_img{
> cObject<img
> innerWrap = <img src="|" name="img_{register:PRJCounter}"
> class="floatleft" />
> typolink.parameter.field = field_link
>
> typolink.ATagParams=onMouseOver="show('prj_{register:PRJCounter}');changeimg
> ('img_{register:PRJCounter}','{register:img_org}')"
> onMouseOut="hide('prj_{register:PRJCounter}');changeimg('img_{register:PRJCo
> unter}','{register:img}');"
> outerWrap={register:img_stack}|
> insertData = 1
> }
> -----
>
>
> I wonder if there is better solution for accessing img/img_org.
> Storing it to TSFE->register and retrieving it via register:img
> seems a little intricate to me.
> PS: this is TS from within a TV-FCE
>
> Any comments/ideas?
Maybe I don't understand what you're trying to achieve, but what would
be wrong with mapping a TS object directly into the fce and then
defining img_org as lib.img_org instead?
-Christopher
More information about the TYPO3-english
mailing list