-
Improvement
-
Resolution: Won't Do
-
Major
-
None
-
1.2.3
-
None
-
-
Yes
-
Empty show more show less
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.