News:

Looking for documentation? Take a look on our wiki

Main Menu

Save a value in the Database? (from within the template)

Started by EvanGR, December 30, 2021, 08:24:02 AM

Previous topic - Next topic

EvanGR

Hello,

Is it possible to save a value in the database, from a template?
Reason: I want to store some custom analytics data in a custom table, on every page load.

Thanks

Studio 42

You can use a Joomla system plugin for this case
Check if you are in admin or not, if you only want Virtuemart pages ... and save in a table you create what you need(iP, URL, GET or POST parameters....)

EvanGR

Based on your response, I managed to do it via the standard Joomla API. Thank you!