[TYPO3-english] treatIdAsReference

Christian Tauscher christian.tauscher at media-distillery.de
Wed Jan 9 15:55:15 CET 2013


Hallo!

In my TS I have this script, wich gives me a List of Files (media-field)
on every Page.

page.headerData.3 = TEXT
page.headerData.3 {
  data = levelmedia: -1, slide
  split {
    token = ,
    cObjNum =  |*| 1 |*| 2
    1 {
      10 = TEXT
      10.current = 1
      10.wrap = { image : 'uploads/media/|' },
    }
    2 {
      10 = TEXT
      10.current = 1
      10.wrap = { image : 'uploads/media/|' }
    }
  }
}

Width V6 this does not work any More. All I get is the ReferenceID.
How to solve this to the real Filename?

treatIdAsReference = 1 is a Property of IMG_Resource only (AFAIK)

The skript gives me a list of this kind

{ image: 'uploads/media/file1.jpg' },
{ image: 'uploads/media/file2.jpg' },
{ image: 'uploads/media/file3.jpg' }

Mind das missing , at the last line, thisfor for the split.

Thank for your help,

Christian.


More information about the TYPO3-english mailing list