Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1294

Simplify external handling of Templates, Paragraphs and Dialogs

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Won't Do
    • Minor
    • None
    • None
    • templating
    • None

    Description

      This is an attempt to simplify the (external) handling of Templates, Paragraphs and Dialogs.

      • a Template, Paragraph and Dialog is represented by a human readable XML document (examples below)
      • the XML documents are valid against the appropriate schemas
      • the XML documents are imported into a running Magnolia instance and setup properly
      • they can be exported into a valid XML document from the repository

      <?xml version="1.0" encoding="UTF-8"?>
      <template version="3.0" xmlns="http://magnolia.info/xml/ns/3.0/template">
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://magnolia.info/xml/ns/3.0/template http://magnolia.info/xml/ns/3.0/template.xsd"/>

      <name>mytemplate</name>
      <path>/templates/mytemplate.jsp</path>
      <title>template.mytemplate.title</title>
      <type>jsp</type>
      <visible>true</visible>

      </template>

      <?xml version="1.0" encoding="UTF-8"?>
      <paragraph version="3.0" xmlns="http://magnolia.info/xml/ns/3.0/paragraph">
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://magnolia.info/xml/ns/3.0/paragraph http://magnolia.info/xml/ns/3.0/paragraph.xsd"/>

      <name>myparagraph</name>
      <description>paragraph.myparagraph.description</description>
      <dialog>dialogNode</dialog>
      <templatePath>/paragraph/paragraph.jsp</templatePath>
      <title>paragraph.myparagraph.title</title>
      <type>jsp</type>

      </paragraph>

      The system view is hard to read and blowed up by meta data. Maybe the document view makes handling easier but I was unable to find useful information and samples.

      The goal is to share general templates between different clients and developers.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              olli Oliver Lietz
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: