Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1712

Joomla! 4.x Coding • Re: Send email to site admin when a person clicks a button/link

$
0
0
You will need a custom module! You will need to use JavaScript to send an asynchronous message to the server. You will need some server side code to respond to the message - it may send an email but it could do something else. For example, it could send you individual notices or a summary once an hour or once a day. You may need to prevent multiple button presses. You will likely need a database table to keep track of all these interactions.

Interesting small project! There are documentation snippets in different places that could be put together for someone wanting to take it on. For example this one shows an example of a button click that changes a database table and returns updated button text (in an administrator component):

https://docs.joomla.org/J4.x:Joomla_4_T ... le_Toggles

Statistics: Posted by ceford — Sat Mar 09, 2024 11:58 am



Viewing all articles
Browse latest Browse all 1712

Trending Articles