Bug #75201
closedExtending bullets_type, imageorient, uploads_type, etc. not possible with FLUID STYLED CONTENT
0%
Description
I wanted to extend the bullets select field. It shows up, I can select it, but no output. Here is what I have so far:
PageTS (works):
TCEFORM.tt_content { bullets_type { addItems { 10 = Un-bulleted List } } }
FSC Bullets.html (no output):
<f:case value="10"> <ul class="no-bullet"> <f:for each="{bullets}" as="bullet"> <li>{bullet}</li> </f:for> </ul> </f:case>
Same behaviour for TCEFORM.tt_content.imageorient, TCEFORM.tt_content.uploads_type, etc.
Regarding bullets, it looks like only values 0, 1 and 2 are processed:
Updated by Riccardo De Contardi over 8 years ago
- Status changed from New to Needs Feedback
Regarding bullets, solution is easy, then: looking at the Typoscript code you posted: simply add:
tt_content{ bullets { dataProcessing { 30 = TYPO3\CMS\Frontend\DataProcessing\SplitProcessor 30 { if { value = 10 equals.field = bullets_type } fieldName = bodytext removeEmptyEntries = 1 as = bullets } } } }
I guess that the other cases are similar
Updated by Philipp Faber over 8 years ago
well, that's good. But this way I have to manually extend my TS everytime I want to add another layout. Could this not be automatic? The way data.layout works for example? Does that make sense?
Updated by Riccardo De Contardi over 8 years ago
Phillip, I think that the problem is that (I still talk about "bullets") you are storing the values inside the bodytext field, and you must tell TYPO3 how to process them using the splitprocessor.
I guess that the code I wrote could be simplified using something like:
tt_content{ bullets { dataProcessing { 10 { if { value = 0,1,10 isInList.field = bullets_type } } } } }
or
tt_content{ bullets { dataProcessing { 10 { if { value = 2 equals.field = bullets_type negate=1 } } } } }
Updated by Riccardo De Contardi about 8 years ago
- Status changed from Needs Feedback to Closed
No feedback since 90 days > closing this issue.
If you think that this is the wrong decision or there is more work to do on it, please open a new issue with a reference to this one.
Thank you