Can we limit number of characters that a content author can enter in the Link Title Field for general link for both Internal and External Link as shown below
Thanks in Advance,
Can we limit number of characters that a content author can enter in the Link Title Field for general link for both Internal and External Link as shown below
Thanks in Advance,
I have yet to find a way to set this per template-field but I managed to add a MaxLength on the input in this file: sitecore\shell\Applications\Dialogs\ExternalLink\ExternalLink.xml
Edit: new solution to enable per template-field maxlength
I dug a bit further and found a similar way to manipulate this behavior. In the same xml file you can set the codebeside class to one of your own:
Then in my CustomExternalLinkForm class I override the Onload method and add some logic like so:
The "ro" Qs parameter is something Sitecore already passes and the contents is that what is filled in the field source of the current field. So this does actually enables you to do some more extending.
Not the most elegant solution because you have to edit sitecore shell files, but it works.