[TYPO3-english] treatIdAsReference

Christian Tauscher christian.tauscher at media-distillery.de
Wed Jan 9 20:01:44 CET 2013



Am 09.01.2013 16:31, schrieb Jigal van Hemert:

>> In my TS I have this script, wich gives me a List of Files (media-field)
>> on every Page.
>
> Maybe the FILES object is something for you?
>
>
http://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/Files/Index.html



cool, but I miss the "levelslide" option.
How can I build this?

Thank you.

page.headerData.3.3 = FILES
page.headerData.3.3 {
  references {
    table = pages
    uid.data = field:uid
    fieldName = media
  }
  renderObj = TEXT
  renderObj {
		data = file:current:publicUrl
		split {
			token = ,
			cObjNum =  |*| 1 |*| 2
			1 {
				10 = TEXT
				10.current = 1
				10.wrap = { image : '|' },
			}
			2 {
				10 = TEXT
				10.current = 1
				10.wrap = { image : '|' }
			}
	
		}

  }
}




More information about the TYPO3-english mailing list