Issue Bug Closed

#53214TypoScript noTrimWrap Bug in FILES

Gernot Ploiner 10/30/13, 07:39 updated 10/30/13, 22:39

Description

If you want to use noTrimWrap somewhere inside of a FILES cObject, it wont work correct.
The first item (file) is trimmed at the end (but shouldn’t).
From the second item to the last the noTrimWrap is missing at all (spaces and letters).
Btw: It doesn’t matter if you use a static file (like in my example) or file.import…

To reproduce the following code, prepare some jpg-file in this folder: /fileadmin/gallery/
One Picture should have the name A_Desert.jpg (you can also adjust the filename in typoscript above).

———————————————
Test 1) Regular working example
Output: aaa – bbb

page = PAGE
page {
  10 = TEXT
  10.*value = aaa*

  20 = TEXT
  20.*value = bbb*
  20.*noTrimWrap = | - ||*
}

———————————————
Test 2) Bug with noTrimWrap
Output first Image (space missing): aaa -bbb*
Output of following Images (complete noTrimWrap missing): *aaabbb

page = PAGE
page {
  20 = FILES
  20 {
    folders = 1:gallery/
    renderObj = COA
    renderObj {
      10 = TEXT
      10.*value = aaa*

      20 = TEXT
      20.*value = bbb*
      20.*noTrimWrap = | - ||*
    }
  }
}

———————————————
Test 3) The Position of the noTrimWrap doesn’t matter. The Problem appears always. Here is an other Example.
Output first Image:
Output of following Images:

page = PAGE
page {
  20 = FILES
  20 {
    folders = 1:gallery/
    renderObj = COA
    renderObj {
      10 = IMAGE
      10 {
        file = fileadmin/gallery/A_Desert.jpg
        stdWrap.typolink.parameter = 1
        stdWrap.typolink.ATagParams.cObject = COA
        stdWrap.typolink.ATagParams.cObject {
          30 = COA
          30 {
            stdWrap.noTrimWrap= | title="|" |

            10 = TEXT
            10.*value = aaa*

            20 = TEXT
            20.*value = bbb*
            20.*noTrimWrap = | x-y ||*
          }  
        }
      }
    }
  }
}

Reviews 1