Project

General

Profile

Actions

Feature #70483

closed

Typoscript join for ContentObjectArray (COA)

Added by Simon Schaufelberger over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2015-10-08
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

I didn't find a good way to do it, so I thought about a new feature:

lib.joinCOA = COA
lib.joinCOA {
    join = ,

    1 = TEXT
    1.value = foo

    2 = TEXT
    2.value = bar

    3 = TEXT
    3.value = bas
}

will then result in: foo,bar,bas

I need this to create a Javascript config array where it is not allowed to have a trailing comma. I can also not add the comma with a wrap to each item because each item is optional (with required = 1).

Actions

Also available in: Atom PDF