Eugene Shmorgun
Eugene Shmorgun

Reputation: 2065

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

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?

Upvotes: 0

Views: 440

Answers (1)

Okonomiyaki3000
Okonomiyaki3000

Reputation: 3696

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.

Upvotes: 2

Related Questions