Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
JCR Contentloader 2.0.4
-
None
Description
When specifying initial content in XML file(s), and you want to include binary files somwhere in your content structure, you currently have 2 options:
1: Inline the binary data in the XML file (like you get when you do a JCR export)
2: Create a folder structure next to the XML file, and store your binary files in the corresponding folders
Option 1 is not suitable for files over a certain size, and option 2 is a royal pain when you have a deep structure, and also takes away some of the advantages of specifying content in XML.
Therefore, I suggest the option of storing your binary file anywhere, while referencing it in your XML. When the content loader (o.a.s.jcr.contentloader.i.r.XmlReader) encounters such a reference, it calls ContentCreator.createFileAndResourceNode so that the file is loaded to the correct place.
Patch coming up.
Attachments
Attachments
Issue Links
- relates to
-
SLING-1165 Content-loading binary files referenced by nt:file should use the binary's lastModified date as default
- Closed