Try our conversational search powered by Generative AI!

Url Property - only Page and External - disable Media, etc


With the Url Property, is there any way to limit the types of links for the editor? I would like to allow internal page and external link but not allow email, media, etc.

Edited, Sep 16, 2022 1:13

I believe (but haven't tested myself) is that you can create a new type inherit from PropertyUrl, and override ValidateUri to only allow links as you intended

you can also in theory create an EditorDescriptor target PropertyUrl and do some clientside validation there 

Sep 16, 2022 6:24

Have a look at this blog post:

And this, that is linked from the first:

Sep 19, 2022 19:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.