Page 1 of 1

Can Content Blocks have a Character Limit? [solved]

Posted: Wed May 11, 2011 8:42 am
by JM6891
Hi everyone!

Is it at all possible to add a character limit onto a content block? I have a client asking about it and I've searched but not found any answers to this as yet.

Thanks in advance.

Re: Can Content Blocks have a Character Limit?

Posted: Wed May 11, 2011 8:10 pm
by micahgodbolt
You could truncate the output. Will that work? You can use |summarize

Re: Can Content Blocks have a Character Limit?

Posted: Thu May 12, 2011 8:06 am
by JM6891
Hmmmm.... didn't think of that. I will give that a go and let you know if it works.

Thanks for your help!

Re: Can Content Blocks have a Character Limit?

Posted: Thu May 12, 2011 8:22 am
by JM6891
Hi there

This worked! I just did:

{content|truncate:30} and it limits the characters to 30!

Thanks so much once again!

Re: Can Content Blocks have a Character Limit? [solved]

Posted: Tue Nov 15, 2011 6:19 pm
by judeabb
This is great.
Is there a way that someone adding content can be told when they've reached the content limit? I've experimented with this and it seems like I can add as much content as I like, but only the number of characters specified will be displayed. And it makes the background disappear on my content box.
I need a way to warn people adding content that they've written too much.

Can you help?
Jude x