Project

General

Profile

Actions

Bug #53214

closed

TypoScript noTrimWrap Bug in FILES

Added by Gernot Ploiner over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2013-10-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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: <a href="index.php?id=1" title="*aaa x-ybbb*"><img src="fileadmin/gallery/A_Desert.jpg" width="1024" height="768" border="0" alt=""></a>
Output of following Images: <a href="index.php?id=1" title="*aaabbb*"><img src="fileadmin/gallery/A_Desert.jpg" width="1024" height="768" border="0" alt=""></a>

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 ||*
          }  
        }
      }
    }
  }
}

Files

typoscript.txt (1.54 KB) typoscript.txt TypoScript for better copy & paste ;-) Gernot Ploiner, 2013-10-30 07:41
Actions

Also available in: Atom PDF