New Package - Char Limit

This is a very basic package,  it’s just a new datatype, a textarea with a limit on the characters.

The character limit can be set on the edit datatype page (default this is set to 100).


In the content section it looks like this (these are 2 char limit properties):


So you get feedback on the amount of characters left when you are typing. If you exceed the limit the content gets trimmed.

Since umbraco v4 is just around the corner, this package is one for v4 (using the datalayer and it also works in liveediting mode).

The reason I created this datatype was to have a simple example to show how to create a datatype, so you can expect a blog post explaining the creation of a datatype soon…

Char Limit Package: download

17 Comments so far

  1. DIrk on November 13th, 2008

    Freaking cool Tim!

    I know of at least one on the forum who can use this datatype…


  2. Aaron Powell on November 13th, 2008

    Hey Tim can you drop me a line on how you’re building this restriction in, I want to see if this is supportable within the UIL validation checks I already have

  3. lpastor on November 14th, 2008


    I having a trouble to use this control and I rely need it :-).
    I’m using v 3.0.3 , is any way that I can use this also or you build this only for v4?

  4. Tim Geyssens on November 14th, 2008

    @lpastor, try downloading v4 and copying the umbrac.datalayer.dll into the bin folder of your v3 site.

    Doesn’t work

  5. Warren Buckley on November 14th, 2008

    This is wicked tim! To restrict end users/clients with the ammount of copy in some places is great.

    Great stuff, keep it up.
    Warren :)

  6. lpastor on November 21st, 2008


    one stupid question…

    How much trouble is to implement this in rich Text editor ?

  7. Jesper Ordrup on December 22nd, 2008

    Cool as always Tim.

  8. Mikael Mørup on April 22nd, 2009

    Hi Tim

    I tried to install the char limit package on my Umbraco server (V 4).

    I expected that a new datatype would appear in the list but that did not happen, what can i be doing wrong ?

    The package is listed under installed packages, and the installation seemed to run just as it should.



  9. Tim Geyssens on April 22nd, 2009

    @Mikael, create a new datatype and select char limit as rendercontrol.


  10. Mikael Mørup on April 22nd, 2009

    Yes now i see how it works, thanks a lot.


  11. Simon Probert on May 1st, 2009

    Nice one! Just what I needed. I also tested it for existing content - if you have existing content for example a page summary as Textbox Multiple you can safely convert that to a Char Limited Textarea without it truncating any of your existing conetnt. If you then you start editing the existing content it will then automatically truncate it to the character limit you set.

  12. Paul on January 20th, 2010

    This is a very cool package. It would be great if we could get it in a textstring (input type=”text” not textarea) field as well.

  13. Tom Keller on May 6th, 2010

    Love it, except that it does not seem to honor “Mandatory” setting when included in a document type (Umbraco 403) - save and publish is allowed when the limited field is empty, even when Mandatory is checked.

  14. Kevon K. Hayes on August 29th, 2010

    I second that could you add except about how to allow make datatype obey mandatory setting. (Is there an interface for this?)

  15. Kevon K. Hayes on August 29th, 2010

    I second that could you add an “excerpt” about how to make the datatype obey mandatory setting. (Is there an interface for this?)

  16. stephen on June 4th, 2011

    I am quite new to Umbraco and have searched high and low for a simple example of creating a datatype so I can understand the concept. Something like a simple textbox. I’ve gone through your blog and googled but cannot find a really basic starting point.

    The New Package Char Limit looked like a good example. Would you be able to send a zip file of this to use as I start out?

  17. Tim Geyssens on June 6th, 2011

Leave a Reply