Aktionen
GX-Feature #70449
geschlossenHinzufügen einer Möglichkeit zur Begrenzung der Anzahl von Abschnitten und Widgets | Add a way to limit the number of sections and widgets
Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Alexandre Ataides
Kategorie:
StyleEdit 4
Zielversion:
% erledigt:
0%
Geschätzter Aufwand:
8.00 h
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:
Jetzt ist es möglich, die Anzahl der Abschnitte und Widgets, die in StyleEdit4 hinzugefügt werden können, zu begrenzen.
Beschreibung
It could be helpful for the 3rd party developers to limit the number of sections that can be added to a theme.
This could be achieved by adding a limit property to the content zone JSON file.
How to test:
- Add the
"limit": 3property to thethemes/Malibu/contentzones/footer-columns.default.jsonfile. - Delete the
themes/Malibu/contentzones/footer-columns.jsonif it exists. - Go to SE4 and edit Malibu.
- Go to Areas > Footer > Variants and select the
Indivudualvariant.
// themes/Malibu/contentzones/footer-columns.default.json
{
"id": "footer",
"type": "content-zone",
--> "limit": 3,
"rows": [...
}
Expected: After adding the new property, the plus icon to add a new section should be visible if: number of sections < limit
Aktionen