-
Notifications
You must be signed in to change notification settings - Fork 645
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
[3.2] Make export button optional #4484
Comments
We do plan on adding a new JSON output format that would include relation info, and a built-in importer that can work with the exported JSON. Once that’s in place, I’m curious if you’d still care to disable exporting? |
It would be especially helpful in the weeks until export becomes useful for all content. But in general I feel like export and import is a feature you don’t really want to expose to all of your users. |
It’s now possible to customize the available exporters for each element type (and source) in Craft 3.4, via a new use craft\elements\Entry;
use craft\events\RegisterElementExportersEvent;
use yii\base\Event;
Event::on(Entry::class, Entry::EVENT_REGISTER_EXPORTERS, function(RegisterElementExportersEvent $e) {
$e->exporters = [];
}); We’ve also added a new “Expanded” export type that includes all relevant custom field values (including Matrix and relational fields), and can be optionally saved as a JSON file. So the built-in export functionality should be more useful to begin with :) |
It seems like the new element export feature currently doesn’t export data for relationship fields (including Matrix) which can make the feature a bit useless for some elements, at least from the client point of view.
I’m suggesting to make the feature optional, possibly via permissions. Configuration for every entry section, category type, etc. is probably a bit too much.
The text was updated successfully, but these errors were encountered: