Hm... will be difficult...
What do you want to count? The characters in the XML field (including the XML tags)? Or the "rendered" characters? Or the rendered HTML? I suggest, that you don't limit the field for now, but -if you want to make sure, that noone messes your site up with long intros- use a string operator to limit the intro DISPLAY ("shorten")
However, i digged into the code of the OE today, and have managed to add a small counter to the statusbar.
I have made a new ini-file to the OE, maxlength.ini in which I define which parentnodes the restiction should apply to. Also I there state the textlength allowed, and wether it should apply to the "intro" or the "body" field.
It works!
I use textRanges in javascript to prevent the xml-fields from expanding.
Regards, Nicklas Lundgren
You must be logged in to post messages in this topic!