Method `add_to_class()` in plugin.rb is not being called

Hi all,

I’m trying to add a value to a tag via add_to_tag but based on my observation when I load a topic with a tag it is not being invoked.

On the other hand, I could see that the method is invoked when I do:

  • add_to_class(:category, :value) for a category
  • add_to_class(:topic, :value) for a topic

However, not when I do the following:

  • add_to_class(:tags, :value)
  • add_to_class(:topic_tag, :value)

What am I missing here ? perhaps this is because you can’t add a custom field to a tag ?

Regards,
SS