restrict page component title length | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
BrianKasingli
BrianKasingliAccepted solution
New Participant
Jul 26, 2023 11:43 PM UTC

You can overlay the Granite UI from the page properties, and provide the maxlength property. Example like (maximum length is 100 characters):

<title jcr:primaryType="nt:unstructured" required="true" name="./jcr:title" maxlength="100" sling:resourceType="granite/ui/components/coral/foundation/form/textfield"/>

 

1 reply

BrianKasingli
BrianKasingliAccepted solution
New Participant
Jul 26, 2023 11:43 PM UTC

You can overlay the Granite UI from the page properties, and provide the maxlength property. Example like (maximum length is 100 characters):

<title jcr:primaryType="nt:unstructured" required="true" name="./jcr:title" maxlength="100" sling:resourceType="granite/ui/components/coral/foundation/form/textfield"/>

 

Translate