Page 1 of 1

Using custom field from news to fire UDT with Event Manager

Posted: Mon Jan 21, 2013 4:21 pm
by cb2004
I know there are few params available like:

Code: Select all

if ($params['category_id'] == 1 {
//do something
}
But is there a way to use a custom field to fire a UDT. At the minute I am sending out an email to members of a group in FEU to let them know if a news article has been updated. But what I would like to do is create a checkbox along the lines of 'Send email'. If that is checked the email will be sent. It would then be good if I could query the database after the update to put that customer field back to the value of 0. Is this possible? If people are just changing a spelling mistake its not really worth all the members getting another email.

Could I check the database and then go from there as I have switched debug to true and get this:

Code: Select all

UPDATE cms_module_news_fieldvals SET value = '1', modified_date = '2013-01-21 16:20:02' WHERE news_id = '2' AND fielddef_id = 1