Share » Forums » Developer » Limit textlength in OE?

Limit textlength in OE?

Limit textlength in OE?

Wednesday 10 December 2003 12:29:50 am - 2 replies

Author Message

Marco Zinn

Wednesday 10 December 2003 12:44:23 pm

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")

Marco
http://www.hyperroad-design.com

Nicklas Lundgren

Wednesday 10 December 2003 1:07:24 pm

Hi all,
Thanks Marco, for your reply.

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!

36 542 Users on board!

Forums menu