Forum
List Manager Support
List Manager supportForums
Public write access is disabled. Please login
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
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