By winman1 on
Hi,
does anyone know how/where to set
Minimum number of charaters for title?
I dont want people to post page/story/forum topic
with too short title.
Thank you very much.
Hi,
does anyone know how/where to set
Minimum number of charaters for title?
I dont want people to post page/story/forum topic
with too short title.
Thank you very much.
Comments
There's no way to do this out of the box
There's no way to do this out of the box, though it could be done through a simple module that checked the length of the text when a new node was created and threw an error if it wasn't long enough.
something like this
Exactly. Here's some code that does what you want. Copy-paste the code in a new file, name it longtitle.module, put it in your modules directory and enable it.
You can set the number of characters in admin->settings->longtitle, and you can choose to which content types the validation applies in admin->settings->content types.
Yes, I was a little bored :)
added to the handbook
I added this code to the handbook as a mini module.
thx dude DriesK a lot! your
thx dude DriesK a lot!
your nick ... looks like from Filandia? :)
Maximum?
This is excellent code, thanks. Have bookmarked it.
Is there anything equivalent for maximum title length? Particularly for uncustomized pages. I have a content admin on one site who wants to exceed what seems to be a 128 character limit (including spaces). I think 150 is about right, but I can't locate where this can be set in the settings or in the code. This is a 4.7 site that may get upgraded in the next few months.
Yes, it would be nice to ba
Yes, it would be nice to ba able to set a maximum title lengh for some content type / views.
Very long titles can destroy the way my theme is supposed to look :)
Thanks,
Expat9