[ 
https://issues.apache.org/jira/browse/SLING-553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607867#action_12607867
 ] 

Bryce Ewing commented on SLING-553:
-----------------------------------

This patch is obviously not workable with the recent changes made to the 
content loader.  I have redone this to fit in with the current code.  Also made 
this work for multivalue parameters too, i.e.:
{
    "ref":"reference:/a/b/c", "refmulti":["reference:/a/b/c", 
"reference:/a/b/d"]
}
Would create a single value reference to /a/b/c, and a multi value reference to 
/a/b/c, and /a/b/d.  References also work as relative paths.

Again would like some feedback on this if this isn't a good option.

Cheers

> Allow references and paths to be loaded from JSON through JsonReader
> --------------------------------------------------------------------
>
>                 Key: SLING-553
>                 URL: https://issues.apache.org/jira/browse/SLING-553
>             Project: Sling
>          Issue Type: Improvement
>          Components: JCR Contentloader
>    Affects Versions: JCR Contentloader 2.0.2
>            Reporter: Bryce Ewing
>            Priority: Minor
>         Attachments: contentloader.patch
>
>
> Allows references and paths to be loaded from json through JsonReader, when a 
> value starts with "reference:" or "path:".  Also needed to be able to 
> reference a file that had been loaded in from say test.html which loads as 
> just nt:file, so thought that when a reference is made to a nt:file type then 
> automatically add the "mix:referenceable" type.
> If either of these options doesn't seem like a good idea please let me know 
> what some other options might be.
> Cheers Bryce

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to