title: How to get database information from Joomla category
body: <p>I know how I can retrieve all information from a article in the database. I am trying to do the same thing for a category. And just for clarification, I am talking about when view is equal to category (index.php?option=com_content&amp;view=category). Below is how I can retrieve any information for a article, when I am on a article page, I want to do the same exact thing, but when I am on a category page. Thanks!</p>
  
  <pre><code>$input = JFactory::getApplication()-&gt;input;
  $articleId = $input-&gt;getInt('id');
  $article = JTable::getInstance('content');
  $article-&gt;load($articleId);
  $articleTitle = $article-&gt;get('title');
  </code></pre>