Can I extend the URL picker to add my own source?

Hi,
I’m wondering how I could add an additional button in the Url picker’s sources.

Can I somehow extend it, or would I need to copy a bunch of stuff from Umbraco’s source code?

As of now, you need to make your own implementation. Umbraco don’t export the component classes at that level so can’t be inherited.

One way is to copy the source from Umbraco into your own project and then expand it. If you want a working example check out Umbraco.Community.RollbackPreviewer/src/Umbraco.Community.RollbackPreviewer/Client/src at develop · Rockerby/Umbraco.Community.RollbackPreviewer · GitHub where the Umbraco folder is the Umbraco source, and rollback-previewer is the extended version.

Doing it this way means you can copy and paste from Umbraco source if it changes in the future (rather than rework your source).

There was an issue open for this on GitHub, but I can’t for the life of me find it…