This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

aurelijus.useckas16377
aurelijus.useckas16377

There's something wrong with the repeater widget as it takes centuries to load when the list fills up a bit. The json created from the entries is only 6.5Kb, thefore I do not see a logic behind the lag. Eventually it is not loading at all and no error message is displayed (just html gibberish)... Any ideas?

my fields.yaml:

fields:
    title:
        label: Title
        oc.commentPosition: ''
        span: auto
        type: text
    content:
        label: files
        oc.commentPosition: ''
        prompt: 'Add new item'
        span: full
        type: repeater
        form:
            fields:
                title:
                    label: Title
                    oc.commentPosition: ''
                    span: auto
                    type: text
                level3:
                    label: Level3
                    oc.commentPosition: ''
                    prompt: 'Add new item'
                    span: full
                    type: repeater
                    form:
                        fields:
                            title:
                                label: Title
                                oc.commentPosition: ''
                                span: auto
                                type: text
                            level4:
                                label: Level4
                                oc.commentPosition: ''
                                prompt: 'Add new item'
                                span: full
                                type: repeater
                                form:
                                    fields:
                                        fileupload:
                                            label: 'File upload'
                                            oc.commentPosition: ''
                                            mode: file
                                            span: auto
                                            type: mediafinder
                                        filename:
                                            label: 'File name'
                                            oc.commentPosition: ''
                                            span: auto
                                            type: text

and an example json:

{"1":{"title":"Articles","level3":{"1":{"title":"Data Sheets","level4":{"1":{"fileupload":"\/detail_usage_report_2017-04-30.pdf","filename":"Detail usage blabla"},"2":{"fileupload":"\/kube-6.5.2.zip","filename":"Kube something"}}},"3":{"title":"Data Sheets","level4":{"4":{"fileupload":"\/detail_usage_report_2017-04-30.pdf","filename":"Something"}}}}},"2":{"title":"Brand Standards and Logoes","level3":{"2":{"title":"Data Sheets 2","level4":{"3":{"fileupload":"\/kube-6.5.2.zip","filename":"do not know"}}}}},"3":{"title":"Brochures ","level3":{"4":{"title":"","level4":{"5":{"fileupload":"\/19052.4 Stat-X First Reponder Brochure.pdf","filename":"Stat-X First Responder"},"6":{"fileupload":"\/19054.5Rolling Stock WEB.pdf","filename":"Rolling Stock"},"7":{"fileupload":"\/19055.2PowerSolutionSheetWEB.pdf","filename":"Power Solution Sheet"},"8":{"fileupload":"\/19057.3Marine Solution SheetWEB.pdf","filename":"Marine Solution Sheet"},"9":{"fileupload":"\/19058.4MiningSolutionSheetWEB.pdf","filename":"Mining Solution Sheet"},"10":{"fileupload":"\/190594-cnc-machine-tool-web.pdf","filename":"CNC & Machine Tool"},"11":{"fileupload":"\/19067.6 Marketing Materials Sell Sheet.pdf","filename":"Marketing Materials Sell Sheet"},"12":{"fileupload":"\/19080.4 ApplicationsFlyer-Industrial.pdf","filename":"Application Flyer Industrial"},"13":{"fileupload":"\/191062-vehicle-fire-system-control-panel.pdf","filename":"Vehicle Fire System Control Panel"}}}}},"4":{"title":"Case studies","level3":{"5":{"title":"","level4":{"14":{"fileupload":"\/19070 Case Study NASA.pdf","filename":"NASA"},"15":{"fileupload":"\/19071 Case Study Ducts.pdf","filename":"Ducts"},"16":{"fileupload":"\/19072 Case Study Aircraft Ground Support Equipment.pdf","filename":"Aircraft Ground Support Equipment"},"17":{"fileupload":"\/19073 Case Study Armored Vehicles.pdf","filename":"Armored Vehicles"},"18":{"fileupload":"\/19103 Case Study Snow Blower.pdf","filename":"Snow Blower"},"19":{"fileupload":"\/19105 Case Study Eurostar Rail.pdf","filename":"Eurostar Rail"},"20":{"fileupload":"\/case-study-2014-array-emr-immovable-objects-vs-in-elevator-rooms.pdf","filename":"Immovable objects vs in elevator rooms"}}}}},"5":{"title":"Catalog"},"6":{"title":"Product Demonstration Guidelines"},"7":{"title":"Photos - Product"},"8":{"title":"Videos - marketing "},"9":{"title":"Sales Presentation"},"10":{"title":"Press Releases & News"},"11":{"title":"Price List","level3":{"6":{"title":"","level4":{"21":{"fileupload":"\/19087.7 Stat-X Price List - 2017.pdf","filename":"Stat-X Price List - 2017"},"22":{"fileupload":"\/19088.5 Stat-X FR Price List.pdf","filename":"Stat-X FR Price List"},"23":{"fileupload":"\/fireaway-terms-conditions.pdf","filename":"Fireaway Terms & Conditions"}}}}},"12":{"title":"Sale Sample Kits"}}

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.