Download & Extend

Similar module: Could this be merged into maxlength module?

Project:CCK Word Count
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Please have a look at maxlength module http://drupal.org/project/maxlength
Could this be merged?

Comments

#1

Yes it could. From a user perspective its quite similar.

But the code is very different, as maxlength is only targetting the Body field, and cck_wordcount only CCK fields. (and one counts characters, the other words, but that is minor)

For now, I would like to keep the modules separated (though I might steal/borrow/copy some tricks from maxlength), but will keep merging in the back of my mind.

#2

But the code is very different, as maxlength is only targetting the Body field, and cck_wordcount only CCK fields.

Maxlength also supports CCK fields.

(and one counts characters, the other words, but that is minor)

So the difference is minor. Maybe one or two settings with a change of little javascript would do the trick. From a user point of view joining these projects is a must. :-)

Just my 2 cents, Ronald

#3

I think i agree. My drush had not updated to the new beta, so i missed the new functionality. Having done this module was a nice learning experience, going for the patch in maxlength will be too.

#4

Have been looking for this a long time, thank you!

I was wondering, it it possible that it counts characters instead of words? Users will figure out to add all in one word ie this-is-a-word and trying to restrict the limit.

Maxlength has that capability, but not this beautiful javascript :)

#5

Maxlength has that capability, but not this beautiful javascript :)

I just checked both modules. The frontend looks quite similar. Can you explain the difference? Is it something behind the scenes?

cheers, Ronald

#6

It's behind the scenes. Actually, maxlength does this more advanced. They render the field + javascript + text server-side. This way, maxlength also works together with editablefields http://drupal.org/project/editablefields Which is what we are trying to achieve.

We need this in the coming weeks, so if you are a bit patient, we'll release updates either here or in maxlength.

#7

Please do it on max-length - there is a thread already about adding this feature (http://drupal.org/node/266759) which has patches in it waiting to be tested / improved.

a_c_m

#8

Old post, but just for info: Maxlength now does CCK, etc.

nobody click here