Projekt

Allgemein

Profil

Aktionen

GX-Feature #70548

geschlossen

Erstellen einer Repeater-Option in SE4 / Create a repeater option in SE4

Von Alexandre Ataides vor 11 Monaten hinzugefügt. Vor etwa 1 Monat aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Alexandre Ataides
Kategorie:
StyleEdit 4
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
200.00 h
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:

Es wurde eine sogenannte Repeater-Option zu StyleEdit 4 hinzugefügt, die als Grundlage für verschiedene neue Widgets dient


Beschreibung

A repeater option would be handy when creating new widgets like Tabs, Carousel Images, Accordions, and so on.

The repeater option should allow us to create a group of options (Textbox, Image, Numberbox, Checkbox, etc.) just so we iterate through these options and "easily" show them in SE4.
In the example below, there is an array of fields, which contains the textbox and longtextbox options.

// Example of a widget.json file using the repeater
...
"description" : "tabsWidget.description",
"cache" : 0,
"version" : "1.0.0",
"displayConfig" : "modal",
"fieldsets" : [
{
    "title" : "tabsWidget.options.content.title",
    "options" : [
        {
            "id" : "repeater",
            "type" : "repeater",
            "label" : "Tabs",
            "attributes" : {
                "min" : 1,
                "max" : 4,
                "itemLabel": "Tab".
                "addMoreLabel" : "Add Tab",
                "canSetDefaultActiveIndex" : true,
                "defaultActiveIndex": 0
            },
            "fields" : [
                {
                    "id": "title",
                    "type": "textbox",
                    "label": "Title",
                    "translatable": true,
                    "default": {
                        "en": "",
                        "de": ""
                    }
                },
                {
                    "id" : "content",
                    "translatable": true,
                    "type" : "longtextbox",
                    "label" : "tabsWidget.options.text.label",
                    "attributes" : {
                        "placeholder" : "tabsWidget.options.text.placeholder"
                    },
                    "default" : {
                        "en" : "",
                        "de" : ""
                    },
                }
            ],
            "default" : [
                [
                    {
                        "id": "my-title-id",
                        "type": "textbox",
                        "label": "Title",
                        "translatable": true,
                        "repeaterField": "title",
                        "default": {
                            "en": "",
                            "de": ""
                        }
                    },
                    {
                        "id": "my-title-content",
                        "type": "longtextbox",
                        "label": "tabsWidget.options.text.label",
                        "translatable": true,
                        "repeaterField": "content",
                        "attributes": {
                            "placeholder": "tabsWidget.options.text.placeholder"
                        },
                        "default": {
                            "en": "",
                            "de": ""
                        }
                    }
                ]
            ]
        }
    ]
},
...

As to test a Widget is needed it's better if only a code review is done, then we test the RepeaterOption in one of the new widgets: Tabs, Carousel, Accordion, etc.


Aktionen #1

Von Alexandre Ataides vor 11 Monaten aktualisiert

  • Thema wurde von Create a repeater option in SE4 zu Erstellen einer Repeater-Option in SE4 / Create a repeater option in SE4 geändert
Aktionen #2

Von Alexandre Ataides vor 11 Monaten aktualisiert

  • Status wurde von Gemeldet zu In Bearbeitung geändert
Aktionen #3

Von Alexandre Ataides vor 11 Monaten aktualisiert

Aktionen #4

Von Alexandre Ataides vor 11 Monaten aktualisiert

Aktionen #5

Von Alexandre Ataides vor 11 Monaten aktualisiert

  • Tags wurde auf 4.9.1.0_beta1 gesetzt
  • Status wurde von In Bearbeitung zu Testing geändert
  • Zugewiesen an Alexandre Ataides wurde gelöscht
  • Zielversion wurde auf 4.9.1.0 beta1 gesetzt
Aktionen #7

Von Daniel Wu vor 8 Monaten aktualisiert

  • Tags wurde von 4.9.1.0_beta1 zu 4.9.1.0_beta1, Features_2023 geändert
Aktionen #8

Von Daniel Wu vor 8 Monaten aktualisiert

  • Geschätzter Aufwand wurde auf 160.00 h gesetzt
  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen #9

Von Daniel Wu vor 8 Monaten aktualisiert

  • Geschätzter Aufwand wurde von 160.00 h zu 200.00 h geändert
Aktionen #10

Von Josua Michalak vor 8 Monaten aktualisiert

  • Zugewiesen an wurde auf Josua Michalak gesetzt
Aktionen #12

Von Alexandre Ataides vor 8 Monaten aktualisiert

  • Tags wurde von 4.9.1.0_beta1, Features_2023 zu 4.9.1.0_beta1, Features_2023, review geändert
  • Status wurde von Testing zu Erledigt geändert
  • Zugewiesen an wurde von Josua Michalak zu Alexandre Ataides geändert
Aktionen #13

Von Till Tepelmann vor etwa 1 Monat aktualisiert

  • Tags wurde von 4.9.1.0_beta1, Features_2023, review zu Features_2023, review geändert
Aktionen

Auch abrufbar als: Atom PDF