Moonsoft Software Solutions

Custom action (e.g. send email) on Add/Modify/Delete?

Started 29 Jan 2018 · 2 replies

  1. dmitry.donskih
    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.
  2. Moonsoft support
    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
  3. dmitry.donskih
    Looks like exactly what I need! Thanks, I'll give it a try.

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket