How can I arrange for the annotator to only appear on particular types of nodes? I would, for instance, like to enable annotation on articles but not pages.

Comments

avisconti’s picture

You can change the default application to nodes by changing .node to a different area of your pages. I've done this with book pages (.node-book), and assume it works with other areas of content types. I'm not sure whether the code would accept a list of multiple content types—haven't tried that.

E.g. to apply annotator only to book pages:
1) in annotator.module line 17, change .node to .node-book
2) in annotator.pages.inc line 12, change .node to .node-book

matt.rad’s picture

Thanks avisconti! This seems to do just the business! It would be great to have this in the config for the module on the back end if possible.

matt.rad’s picture

Hi, I have noticed that the site throws a "Cannot search the store for annotations" error now when looking content types other than the one I have defined as above. Do you think that is caused by this?