title: Joomla show content if current article category id is
body: <p>i am using joomla 2.5 and i want to show some special text only in those articles which belongs to category id 11.</p>
  
  <p>to get category id i tried:</p>
  
  <pre><code>&lt;?php $catid = JRequest::getInt('catid'); echo $catid; ?&gt;
  </code></pre>
  
  <p>to check if current category id is  11 and then show special text i used: </p>
  
  <pre><code>&lt;?php $catid = JRequest::getInt('catid'); if ($catid == 11) {?&gt;SPECIAL TEXT&lt;?php } ?&gt;
  </code></pre>
  
  <p>but it is not working :( text can be seen in all categories.</p>