[TYPO3-UG Dutch] Alleen de URL bij IMAGE gebruik

Drs. Ing. W.S.M. Perquin perquin at yniverse.nl
Mon Dec 19 00:20:49 CET 2011


Altijd irritant eigen vragen beantwoorden (Voor in het archief):
20=COA
            20 {
                5.stdWrap.noTrimWrap= | <image imageURL="|" |
                5.postCObject = TEXT
                5.postCObject.char = 10
                5=IMG_RESOURCE
                5.file.import=uploads/pics/
                5.file.import.field=image
                5.file.maxW=960
                5.file.maxH=600
            }
Met img_resource lukte het.

-----Oorspronkelijk bericht-----
Van: typo3-ug-dutch-bounces at lists.typo3.org
[mailto:typo3-ug-dutch-bounces at lists.typo3.org] Namens Drs. Ing. W.S.M.
Perquin
Verzonden: zondag 18 december 2011 22:45
Aan: 'TYPO3 Usergroup Dutch'
Onderwerp: [TYPO3-UG Dutch] Alleen de URL bij IMAGE gebruik

Beste Lijst 

Ik wil voor een xml file alleen de url van de afbeelding hebben. Dit lukt me
niet.

Onderstaand de code zoals ik het nu heb. De betreffende afbeelding(en) heeft
2 formaten. Namelijk als thumbnail en als gewone afbeelding. In TYPOscript
doe ik het volgende:

30=IMAGE

            30 {

               wrap= imageURL="|" 

               file.import=uploads/pics/

               file.import.field=image

               file.width=600

               file.height=600

            }

#maak de image thumbnail aan

            40=IMAGE

            40 {

               # Alleen output wanneer hij leeg is. uit gezet anders werkt
het niet

               #required=1

               wrap= thumbURL="|" imageLinkURL="" imageLinkTarget="">

               file.import=uploads/pics/

               file.import.field=image

               file.width=60

               file.height=60

            }

 

Alleen dit geeft het volgende resultaat:

imageURL="<img src="typo3temp/pics/ca7be20c91.png" width="60" height="60"
alt="" />"thumbURL="<img src="
<view-source:http://85.17.151.16/%7Eworklink/typo3temp/pics/ca7be20c91.png>
typo3temp/pics/ca7be20c91.png" width="60" height="60" alt="" />"
imageLinkURL="" imageLinkTarget="">

 

Echter het resultaat moet zijn:

imageURL="typo3temp/pics/ca7be20c91.png" thumbURL="
<view-source:http://85.17.151.16/%7Eworklink/typo3temp/pics/ca7be20c91.png>
typo3temp/pics/ca7be20c91.png" imageLinkURL="" imageLinkTarget="">
 
Ik wild dus alleen de URL hebben. Hoe krijg ik dat voor elkaar?

 

_______________________________________________
TYPO3-UG-Dutch mailing list
TYPO3-UG-Dutch at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch



More information about the TYPO3-UG-Dutch mailing list