AnsweredAssumed Answered

Class behaviour applied only to a type and not its subtypes

Question asked by iblanco on May 28, 2010
Hi,

I'm  developing a behaviour capable of normalizing the characters used in a selected property (for example to replace áéíóú chars with aeiou). I want to use this behaviour to "normalize" the name of the files (cm:name property in cm:content type).

The problem is that AFAIK many out of the box contents (forums, workflosws… )extend from cm:content so probably applying the behaviour to cm:content and all its subtypes is not a good idea.

The obvious way to solve this is making the type check when the behaviour itself is fired but it would be much nicer if I could limit this on behaviour binding. AFAIK bindClassBehaviour does not allow setting such a filter. Is there any better way of doing this at all?

Outcomes