Set default Assets Folder to open in ContentReference Picker

Vote:
 

Is there any way to set what assets folder to open the dialog in when the user shall select for instance an Image? 
We have an Icon library in one folder in the Global assets and on one block we have a ContentReference picker, and it would be helpfull if it opens up the wanted folder first. 
It should not be restricted to only that folder, the user can select from another folder.
Running on version 11.

#269796
Edited, Jan 11, 2022 6:25
Vote:
 

Hi One,

You can create a custom editor descriptor and override the IEnumerable<ContentReference> Roots method.

https://world.optimizely.com/documentation/developer-guides/CMS/Content/Selecting-content/

Hope this helps!

#269808
Jan 11, 2022 11:20
Vote:
 

Sounds interresting, but you can only have one UIHint on a property right? Already have UIHint.Image on that one

#269809
Edited, Jan 11, 2022 12:08
Vote:
 

Tried the example and it opened the dialog in the wanted Folder but I couldn't select or see any other Global Folder, only that Folder and "For this Page".
And for it not to open the "Blocks" section I hade to set : ContentReferenceEditorDescriptor<ImageData>

#269812
Jan 11, 2022 12:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.