Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1161

Easier initial content loading of binary files

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • JCR Contentloader 2.0.4
    • JCR Contentloader 2.0.6
    • JCR
    • 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

        1. SLING-1161.patch
          14 kB
          Vidar Skauge Ramdal

        Issue Links

          Activity

            People

              vramdal Vidar Skauge Ramdal
              vramdal Vidar Skauge Ramdal
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: