Forum


List Manager Support

List Manager support
Forums
Public write access is disabled. Please login

Custom action (e.g. send email) on Add/Modify/Delete? 29.01.2018 15:37

Hello,

could anyone give me an idea how to implement custom action (in particular, send notification email) when a record is added to a list? Thank you.

Re: Custom action (e.g. send email) on Add/Modify/Delete? 30.01.2018 08:50

Hello,
you can check this source file:

JOOMLA/administrator/components/com_listmanager/models/main.model.php

There you will find the methods that are called when the 'history' option is enabled. This option register actions (add, update,delete) whenever the list is modified, you can use these same methods and introduce any custom action there. These are the methods being called:

_addAccessInsert
_addAccessUpdate
_addAccessDelete

The parameters are the record id and the list id. At the next method (_addAccessWrapper) you can check how to recover record data being added/updated and other user data attached you can use to build your email content.

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: Custom action (e.g. send email) on Add/Modify/Delete? 30.01.2018 10:41

Looks like exactly what I need! Thanks, I'll give it a try.
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback