[
https://issues.apache.org/jira/browse/SLING-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Peltier updated SLING-5682:
-----------------------------------
Description:
it is not possible right now to post an ordered structure through json data
[0]. this ticket is for implementing [~bdelacretaz] proposal to use JSON Arrays:
{noformat}
{
"title": "The parent node",
"SLING:ordered": [{
"SLING:name": "first",
"title": "This comes first"
}, {
"SLING:name": "second",
"title": "This comes second"
}]
}
{noformat}
This needs to be triggered by selector or content-type switch so that
the existing POST behavior is unchanged.
I suppose having SLING:ordered should then also set the appropriate
mixin on the parent node.
[0] http://sling.markmail.org/thread/plov2u7kibscn7sx
was:
it is not possible right now to post an ordered structure through json data
[0]. this ticket is for implementing [~bdelacretaz] proposal to use JSON Arrays:
{
"title": "The parent node",
"SLING:ordered": [{
"SLING:name": "first",
"title": "This comes first"
}, {
"SLING:name": "second",
"title": "This comes second"
}]
}
This needs to be triggered by selector or content-type switch so that
the existing POST behavior is unchanged.
I suppose having SLING:ordered should then also set the appropriate
mixin on the parent node.
[0] http://sling.markmail.org/thread/plov2u7kibscn7sx
> special json array import for sling post servlet to post orderered structures
> -----------------------------------------------------------------------------
>
> Key: SLING-5682
> URL: https://issues.apache.org/jira/browse/SLING-5682
> Project: Sling
> Issue Type: Improvement
> Components: Engine
> Reporter: Nicolas Peltier
>
> it is not possible right now to post an ordered structure through json data
> [0]. this ticket is for implementing [~bdelacretaz] proposal to use JSON
> Arrays:
> {noformat}
> {
> "title": "The parent node",
> "SLING:ordered": [{
> "SLING:name": "first",
> "title": "This comes first"
> }, {
> "SLING:name": "second",
> "title": "This comes second"
> }]
> }
> {noformat}
> This needs to be triggered by selector or content-type switch so that
> the existing POST behavior is unchanged.
> I suppose having SLING:ordered should then also set the appropriate
> mixin on the parent node.
> [0] http://sling.markmail.org/thread/plov2u7kibscn7sx
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)