-
-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SearchKit - Import/Export saved search configuration #22229
Conversation
(Standard links)
|
4fd41aa
to
922ec2c
Compare
@colemanw I've tested this by patching just this PR on the latest 5.46-alpha1. The export works but it requires "Form Core" extension to be enabled, which might not be obvious to many. I only figured that out by looking at the console log and it said "Afform does not exist." Once I enabled the export works. Just for testing I tried to rename the search name in the export and import it, but it gives me a db error: already exists. Not sure what I'm doing wrong. I understand that with a clone button this is not strictly needed. Maybe as a follow-up it could have a checkbox to allow someone to overwrite an existing Saved Search if they have the same name. |
Oh, actually it did import the search with my changed name despite the error message. |
@herbdool if your export includes other stuff like displays, forms, etc you have to change the name of the search they reference too. |
922ec2c
to
3b1a518
Compare
Thank you for testing this @herbdool. |
The list of actions is getting too big for a row of buttons...
… Search" button to top
3b1a518
to
cab2e6c
Compare
Overview
Provides a UI for importing and exporting SavedSearches in JSON format. This allows power-users to copy and paste their Searches between sites. For extension developers, includes a direct link to generate a
.mgd.php
file from the API Explorer.Technical Details
Exporting smart groups depends on #22228