elke_be
September 2, 2024, 2:40am
1
Silverstripe Version: 5.2
Question:
Has anyone else had their grid field CSV Import button disappear after a recent upgrade?? I have the standard implementation through model admin (as per https://docs.silverstripe.org/en/5/developer_guides/integration/csv_import/#import-through-modeladmin ) which was previously working just fine… am trying to track down whether this was due to a recent SS5 or module update or something else.
Import button has also disappeared from SecurityAdmin.
Any ideas most welcome!
elke_be
September 3, 2024, 3:05am
2
Ok, so I’ve tracked it down to a module I’m using:
Facebook/Instagram API (META) integration, Social Feed for Silverstripe
Not sure yet why exactly the buttons are disappearing, but have submitted a bug report and will keep digging… I have a hunch that it’s not the social-media module itself, but rather one of its dependencies.
elke_be
September 3, 2024, 4:47am
3
The same happens when this module is installed:
Image Editor for quick image alt/title, name and focus point updates
They have similar dependencies.
ntd
September 5, 2024, 6:02am
4
Both aforementioned modules import goldfinch/helpers and that module disables the import button in ModelAdmin
.
elke_be
September 6, 2024, 12:57am
5
Thanks that’s very helpful
Any tips on how to only apply that to selected model admins? Eg. have buttons enabled for SecurityAdmin (prevent the module removing the buttons), but disabled on the ImageEditorAdmin (use the module as intended)?
ntd
September 6, 2024, 7:50am
6
You basically have 3 options:
do not use those modules
push a change upstream, e.g. making the AdminPlain
extension optional
manually modify the code in your vendor
folder.
You can also try to apply a custom extension that re-enable the import button, but I’m not sure about the order in which the extensions are applied.
@ntd Thanks. The affected module has now been updated.