Try our conversational search powered by Generative AI!

How to only allow show video and External link fields in Property URL



i am use property Url but i just want to allow to show two options Video and Extarnal link

I try to use UIHINT but it seems to be not work

Can anyone have any solution to do that?


Thao Pham

Edited, Mar 12, 2019 9:10

It's not supported for the Url property. So I think you have to create a custom validator to block other content types, but that won't improve the user experience. It will only show an error message after the editor has tried to select invalid content types.

Mar 12, 2019 10:52

Don't we have any customized type for External links only? That can provide us full (Absolute) url.

Actually this is a need for meta tags.

Mar 12, 2019 18:28

Do you mean external links to CMS pages? It’s fairly straightforward to create absolute URL from page URL and add protocol, domain and, if needed, port. Just create UrlResolver or UrlHelper extension method that can be reused in all your projects. It’s better to leave that logic to the developer in my opinion.

Mar 12, 2019 19:59
* 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.