Actions
Bug #59533
closedOptionSplit cObjNum inside FILES CO does not work
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2014-06-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Please look at the following TS code below.
In my opinion the TS is correct. But this section does not work.
*cObjNum = 1 || 2* 1.current = 1 1.wrap = <h2>|</h2> 2.current = 1 2.wrap = <p>|</p>
It should output <h2>first text</h2> and <p>second text</p>. It does output, <h2>first text</h2> <h2>second text</h2> though. So the option split does not seem to work. I tried this outside the FILES Content Object and it works without problems.
lib.headerSlider = FILES lib.headerSlider { references { table = pages ##fieldName = media data = levelmedia:-1, slide treatIdAsReference = 1 } sorting = sorting_foreign renderObj = COA renderObj { 10 = TEXT 10 { data = file:current:description split { token = - cObjNum = 1 || 2 1.current = 1 1.wrap = <h2>|</h2> 2.current = 1 2.wrap = <p>|</p> } wrap = <div class="text">|</div> } 20 = IMAGE 20 { file { import { data = file:current:publicUrl } width = 950c height = 300c } altText.data = file:current:description } wrap = <div class="slide">|</div> } }
Actions