0

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?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Eugene Shmorgun
  • 2,083
  • 12
  • 42
  • 67

1 Answers1

2

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.

Okonomiyaki3000
  • 3,628
  • 23
  • 23
  • you can get the article id with http://stackoverflow.com/questions/6056886/joomla-plugin-how-to-get-article-tile-and-article-id to make it dynamic ! – HamZa May 29 '12 at 07:41