Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-582

Support for auto-generated paragraphs in all extras columns

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.2.3
    • None
    • Yes

      I have implemented custom versions of the AutoGeneratedExtrasArea and SingletonParagraphTemplateModel classes (and added an ExtrasColumn class) so now we are able to configure auto-generated paragraphs for specific columns in the extrasArea. Currently all auto-generated paragraphs go into extras1, which is too limited for our current project.

      For example we can now configure a template like this:


      templateName
      extrasArea
      extrasColumns
      extras2
      autoGeneratedParagraphs
      someParagraph
      defaultValues
      someKey1: someValue1
      someKey2: someValue2
      name: someParagraph
      class: (custom).ExtrasColumn
      class: (custom).AutoGeneratedExtrasArea
      columns: 2
      modelClass: (custom).SingletonParagraphTemplateModel


      Along the way I have also changed createMainArea, so it is not necessary to have an auto-generated paragraph in the main area when you want an auto-generated paragraph in the extrasArea.

        Acceptance criteria

              pbaerfuss Philipp Bärfuss
              breun Nils Breunese
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: