Projekt

Allgemein

Profil

GX-Feature #70449

Von Alexandre Ataides vor mehr als 1 Jahr aktualisiert

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: 
 1. Add the `"limit": 3` property to the `themes/Malibu/contentzones/footer-columns.default.json` file. 
 1. Delete the `themes/Malibu/contentzones/footer-columns.json` if it exists. 
 1. Go to SE4 and edit Malibu. 
 1. Go to Areas > Footer > Variants and select the `Indivudual` variant. 

 
 ``` 
 // 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`

Zurück