title: CMS block only on first category page
body: <p>I'm using Magento 1.9 and struggling on one thing.
  I have a CMS block in my category page but I want it to show only on the first page! So if I scroll down and move to page 2 on the same category I don't want to see that CMS block again.
  I tried to put this code in the CMS block... but it ignores me
  (category-accordion.accordion is the main div of the CMS block)</p>
  
  <pre><code>&lt;script&gt;
  if (window.location.href.indexOf("?p=") &gt;-1) 
  {document.getElementsByClassName('category-accordion accordion')[0].display='none';}
  // ]]&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>EDIT:</p>
  
  <p>tried the following code on the category page:</p>
  
  <pre><code>&lt;?php if($this-&gt;isContentMode()): ?&gt;
  &lt;?php echo $this-&gt;getCmsBlockHtml() ?&gt;
  
  &lt;?php elseif($this-&gt;isMixedMode() &amp;&amp; (strpos($_SERVER['REQUEST_URI'], '?=p') !== true)): ?&gt;
     &lt;?php echo $this-&gt;getCmsBlockHtml() ?&gt;
     &lt;?php echo $this-&gt;getProductListHtml() ?&gt;
  
  &lt;?php elseif($this-&gt;isMixedMode() &amp;&amp; (strpos($_SERVER['REQUEST_URI'], '?=p') !== false)): ?&gt;
  &lt;?php echo $this-&gt;getProductListHtml() ?&gt;
  
  &lt;?php else: ?&gt;
   &lt;?php echo $this-&gt;getProductListHtml() ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>