Change standard view for add content from create to import in web UI

Hi, In the nuxeo Web UI, in the add content layout the standard view is “create” I'd like to change that to “import”. So that when you add content your first option will be to import. Thanks!

0 votes

0 answers

171 views

ANSWER

I think you can just override the slot contributions (from the web ui bundle) using your custom bundle file and change the order on the create and import slots.

https://github.com/nuxeo/nuxeo-web-ui/blob/master/elements/nuxeo-web-ui-bundle.html#L341

nuxeo-slot-content name="documentCreateItem" slot="CREATE_POPUP_ITEMS" order="10" …

nuxeo-slot-content name="documentImportItem" slot="CREATE_POPUP_ITEMS" order="20"

05/11/2021

Thanks LaraGranite I'll try it out!
05/12/2021