[TYPO3-templavoila] multiple images

Felix Buenemann Felix.Buenemann at gmx.de
Thu Oct 9 01:07:10 CEST 2008


On 03.10.2007 16:29 Uhr, Dmitry Dulepov [typo3] wrote:
> Hi!
> 
> Andreas Stauder wrote:
>> I tried to insert more than one image in the DS with:
>>
>> -------------
>>
>> <field_image type="array">
>> [...]
>> <TypoScript><![CDATA[
>>
>> 5 = TEXT
>> 5.field = field_image
>> 5.split {
>>     // token.char = ,
>>     token.char = 44
>>     cObjNum = 1
>>     1 {
>>         10 = IMAGE
>>         10.file.import = uploads/tx_templavoila/
>>         10.file.current = 1
>>         10.file.listNum = 0
>>         10.file.import.listNum = 1
>>         10.file.maxW = 200
>>     }
>> }
>>     ]]></TypoScript>
>> </tx_templavoila>
>> <TCEforms type="array">
>> [...]
>> <size>10</size>
>> <maxitems>10</maxitems>
>> [...]
>> </field_image>
>>
>> -------------
>>
>> but no image appears. If I change the IMAGE to TEXT, all works fine
>> and the filenames are shown.
> 
> I think you should start from cleanup. You have several non-existing
> properties in your TS. Check all properties with TSRef. As soon as you
> get them in right places, it should work :)
> 

If someone else is still trying, this code works for me:

---snip---
	10 = TEXT
	10.field = field_images
	10.split {
		token = ,
		cObjNum = 1
		1 {
			10 = IMAGE
			10.file = GIFBUILDER
			10.file {
				XY = 68,68
				10 = IMAGE
				10.file.import = uploads/tx_templavoila/
				10.file.import.current = 1
				10.file.import.listNum = 0
				10.file.maxW = 68
				10.file.minW = 68
				10.file.maxH = 68
				10.file.minH = 68
			}
		}
	}
---snip---

-- Felix Buenemann



More information about the TYPO3-project-templavoila mailing list