Hello, I just receive a SuiteCRM in production. This is my first time with this software. I was asked to able the admin user to delete messages. What I’m trying to do is add a column with checkboxes in the email list grid, and add a button to delete selected checkboxes.
Until now, I was able to add the button and the header of the column for checkboxes.
I need help with this:
- Where is the file/function in charge of generate the list, in order to add the checkbox?
- Where is the best place to check if the user is admin, to display the button?
- Is there a defined SuiteCrm functions to handle email deletion?
- Button was added in modules/Emails/templates/_baseEmail.tpl
Attached image to show what I’m done until now
Thanks in advance.
I am not sure but you may be able to achieve it with a widget_class.
If you search the code you will find them being used in subpanels to achieve exactly what you are trying to do but in other modules.
There are certain recurrent widget_class es used in many of the standard subpanels:
Additionnally I believe that you can create your own widget classes.
For example the (formerly custom) module FP_events has additional custom widgtes like:
I repeat: maybe this has nothing to do with your requirement.
I will check if what you propose work for me and let you know later.
Thank you for replay.
Note that this screen has changed in 7.9.x and the customizations you are making now won’t apply after that version…
I really think you would be better off thinking of a solution for the newer versions.