Hi Ian,

Ian Boston schrieb:
> Hi,
> 
> http://incubator.apache.org/sling/site/content-loading.html
> 
> If both a directory and a content definition file exist do both get
> added when loading ?
> eg
> 
> /private.json
> /private/some/content/private.html
> 
> If private.json contained an ACL,ACE structure would those properties
> and sub nodes get added to the repository on load *as well as* the
> directory subtree?

Yes, the private.json file is used to define and setup the private node
(and any sub nodes) and then the contents of the private directory is
used to define and setup more content, the some/content/... subtree in
your example.

By default a folder is created as a sling:Folder unless a content
definition file of the same name exists, in which case the content
definition file is applied first.

> Also, is it possible to set the properties of a node on initial load if
> the node is a nt:file and contains content?

You mean, you your initial content contains:

   .../thefile.json
   .../thefile

and the thefile node should be created according to the thefile.json
file and then the jcr:content/jcr:data should be loaded from thefile ? I
don't think, that this currently works.

But this would probably be a good extension like being able to load
initial content from a single file instead of a directory as it is the
case now (see SLING-694 [1]).

Regards
Felix

[1] https://issues.apache.org/jira/browse/SLING-694

> 
> Thanks
> Ian
> 

Reply via email to