Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-1

Load content-types and register workspace and node-types

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 0.5
    • None
    • Basel 85
    • 5

      1. Introduce a new key in magnolia.properties file pointing to the content-type directory.
      2. Load all files in that directory during content-types' module startup-phase
      3. Create workspace and register nodetypes for the defined content-type.

      Minimal requirement for now is to have the name and the namespace of the content-type read from the content-type file.

      Example listing of the directory:

      $ tree content-types/
      content-types/
      ├── contact.ctd
      ├── event.ctd
      └── my_file.ctd
      

      For now we leave the files under the root-type directory and the filename is arbitrary. I don't want the namespace (e.g. 'mgnl') to be extracted from the filename.

      $ cat contact.ctd
      namspace 'mgnl'
      entity 'contact'
      

        Acceptance criteria

          1. event.ctd
            0.0 kB
          2. event.yaml
            10 kB

              mmichel Maxime Michel
              ejervidalo Espen Jervidalo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: