Hi,
You may well know all of this already, but I though I should share anyway, so please ignore any useless input :).

There are working examples of loading about 1000 files (997 actually) at [1] which pulls the files from a separate svn tree.
In addition the correct json format appears to the of the form

{
   "sling:resourceType" : "sling/blog",
  "subnodename" : {
       "sling:resourceType" : "sling/blogposting"
  }
}

and not as stated in the documentation. (afaik the documentation for the XML format is correct)
A while back I submitted a patch to fix the javadoc [2]

Its not possible to configure ACLs with json files in content loading when the ACL's are managed by the Jackrabbit 1.5 Default Access Manager, (Sling's default) as the ACL's are stored in a protected space. A while back I submitted a slightly ugly patch [3] to allow bundles to configure ACL's in a similar way to content loader, this also allows bulk loading of Authorizables.


I will back off changing the wiki page as someone else has picked that up, (I replied to the confluence edit a few minutes ago( but I hope this helps.
Ian


[1] 
http://github.com/ieb/open-experiments/tree/3c1a92784b8f3e0856e6e4aae623d52343f150c7/slingtests/osgikernel/bundles/uxloader
[2] https://issues.apache.org/jira/browse/SLING-971
[3] https://issues.apache.org/jira/browse/SLING-981


On 25 May 2009, at 09:13, Mike Müller wrote:

Hi Vidar

I might have some knowledge on this, especially loading
content as XML files.
Is there a wiki page I could update?


I created a wiki page [1] (which contains by now the content of
sample_readme.txt [2]). Would be very good if you just change
this page. Feel free to change/correct/append everything you like
and let me know when you've finished.
Thank you for your help.


[1] http://cwiki.apache.org/confluence/display/SLING/Content+Loading

[2] 
https://svn.apache.org/repos/asf/incubator/sling/trunk/samples/simple-demo/src/main/resources/SLING-INF/content/sample/sample_readme.txt


best regards
mike

Reply via email to