How to get the date of creation and view count of an article in Joomla?

429 views Asked by At

Can somebody hint the follow: I have to insert in my custom module oа Joomla (HTML essentially) the service info, which is shown by Joomla usually - I need the date of creation and the number of how this article was viewed?

1

There are 1 answers

1
Okonomiyaki3000 On

You can run a very simple query to get this:

SELECT `created`, `hits` FROM #__content WHERE `id` = <your article id>

created is the creation date, hits is it number of times the article has been viewed.