Page 1 of 1

maximum input value

Posted: Tue Aug 09, 2022 10:05 am
by andrewvideouk
Hi

it's posbile to have a maximum value on title input field on the pages and other places.

At the moment I have a smaty shoring title stings but ony problem I have that people puting in long titles and not realsing that the tilte is cut short.

Thank you.

Re: maximum input value

Posted: Tue Aug 09, 2022 2:32 pm
by DIGI3
You'd need to customize the template, or perhaps add a note in with a module like ECB2.

Re: maximum input value

Posted: Mon Aug 15, 2022 8:17 am
by andrewvideouk
Yes I guess you need to customize the template. I not sure what to change and where.

Only place I think is the tempatate is in modules/CMSContentManager/templates/admin_editcontent.tpl and can't see where to see the title input plus what I need to change.

I have copied the CMSContentManager into module_custom folder

Your help would be great.

Thank you.

Re: maximum input value

Posted: Mon Aug 15, 2022 2:57 pm
by DIGI3
It can be done with a (slightly hacky) |replace in that template. The forum rules don't allow posting code changes to the core so I won't put it here, but feel free to ping me in Slack and I'll give you the code snippet.