[MAGNOLIA-4901] Add possibility to set maximum number of components in areas Created: 09/Jul/10  Updated: 21/Feb/14  Resolved: 22/Jan/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5
Fix Version/s: 4.5.8

Type: New Feature Priority: Minor
Reporter: Stefan Baur Assignee: Roman Kovařík
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MAGNOLIA-4939 maxComponents property causes editing... Closed
is causing MAGNOLIA-4900 Add more conditions for adding compon... Closed
documentation
to be documented by DOCU-367 Ability to set maximum number of comp... Closed
to be documented by DOCU-403 Document maxComponents property Closed
relation
is related to BLOSSOM-147 Support for specifying maximum compon... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Translation:
Enable the configuration of maximum Paragraphs for Areas to provide flexible functionality in templating. You would be able to configure 4 available paragraphs, but enable the author just to add 2 paragraphs (no matter wich ones).
The effort should not be too big.
Maybe there are issues with paragraph inheritence for example in the promos area.
One could add 4 components to availableComponents, but already not display the newbar after 2 actually added components to the site.

Original:
Es wäre schön, wenn man die maximale Anzahl von Paragraphen in einer Area per config übergeben könnte.

Diese Lösung wäre flexibler als z.B. das Singleton Template. Man könnte beispielsweise 4 verschiedene paragraphen zur Auswahl stellen, aber trotzdem nach zwei erfassten Paragraphen keinen weiteren mehr zulassen (newbar nicht mehr anzeigen).

Auf diese Weise könnte man mit dem Standard Template/Model ganz einfach die verschiedensten Szenarien abdecken, ohne jeweils ein neues ftl alegen zu müssen und eigene Template- und Model-Klassen zu schreiben.

Aus meiner (noch etwas eingeschränkten) Sicht solte sich sowohl der Implementierung- wie auch der Test-aufwand in Grenzen halten. Es stellt sich eventuell die Frage, wie oder ob man diese Funktionalität für Promos einbauen könnte. Da spielt ja die Vererbung noch mit...



 Comments   
Comment by Stefan Baur [ 09/Jul/10 ]

I just realized, that I had to write in English.

Summary: Enable the configuration of maximum Paragraphs for Areas to provide flexible functionality in templating. You would be able to configure 4 available paragraphs, but enable the author just to add 2 paragraphs (no matter wich ones).

the effort should not be too big.

maybe there are issues with paragraph inheritence for example in the promos area...

Comment by Jan Haderka [ 21/Jan/13 ]

Our language for issue tracking is English. If you accept issue in German (or any other language for that matter), then you need to translate title and description to English as part of resolution of the ticket.

Comment by Stefan Baur [ 21/Jan/13 ]

Sorry, that was my first ticket I created at magnolia a few years ago...
Do you want me to translate it (btw: the first comment was the translation...)

Comment by Roman Kovařík [ 21/Jan/13 ]

Hello Stefan,
I added the translation from your first comment. Feel free to correct it or add something if you want.
Thanks. Roman.

Generated at Mon Feb 12 04:00:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.