I need to make a 'request for training' link on certain pages(articles) of my website only.

on clicking this link the 'title of that article' and the 'name of the user' who clicked on it must be mailed to a particular role called the training manager.

the user should not be asked to type any content .

i have tried webforms ,creating a new block , contact forms ,comments
. they don't seem to fit the bill.
please help.

Comments

peterjlord’s picture

I think the Rules module may do it http://drupal.org/project/rules/ . There is definitely an event (condition node updated, node saved) for if content is viewed. /

It can definitely done combining with the flag field as it exposes stuff to the rules module. When something is flagged do something rules ie email people or various other things. I've not done what your trying to do but you can do stuff like if content fields have certain values do thing very powerful without having to write custom code.

Hope this is of use to you

naksha’s picture

Thank you! i jhave now flagged content and just suits my purpose perfectly.

naksha’s picture

i used notifications .

peterjlord’s picture

Good, I'll have to have a look at the notifications module it's a new one for me. I love the flag module though as it's quite tiny, extendible and integrates with views well.