Feature #72018
closed
Added by Oliver Hader over 8 years ago.
Updated over 5 years ago.
Description
Integrate a possibility to render a JSON string using a new TypoScript content object.
Example
page.10 = JSON
page.10 {
type = object
leveltitle = TEXT
leveltitle {
data = leveltitle:-1,slide
}
levelmedia = TEXT
levelmedia {
data = levelmedia:-1,slide
}
}
- type: object | array - defines the type of the subject to be build
- *: accordant sub cObjects to be rendered
- Description updated (diff)
What does as
here? AFAIK this should render a JSON encoded string in the end.
Okay as
should be type
then... defining whether the base type should be build as array or object.
- Description updated (diff)
Ah, gotcha. ;-) But what about the other options? Maybe add something like options
instead which either directly accepts a list of JSON_
constant names or takes a list of properties which are internally processed to set the constants as necessary.
- Target version changed from 8 LTS to 9.0
- Target version deleted (
9.0)
- Related to Epic #82839: Json API for implementing single-page applications added
- Status changed from New to Rejected
I'd suggest that we do not introduce this kind of new feature for TypoScript anymore - if somebody wants to use a JSON frontend, we should build it on top of sth else than TypoScript.
Also available in: Atom
PDF