How can I show a block in a view page, excluding its paginated pages? I want to place put a block in a view page. Let's say the news page, whose path is http://www.example.com/news.

The view uses pager to list the content. 


  


I want a block to show up only in the very first page of the news page (http://www.example.com/news), excluding from paginated pages, such as news?page=1, news?page=2.

I set the visibility to only list in news, but the block still shows up in news?page=1, news?page=2.

How can I show a block in a view page, excluding its paginated pages?
You can also achieve the same in using following snippet, in the blocks visibility settings by turning PHP code on,

&lt;?php
  $url = request_uri();
  $pos = strpos($url, "page");
  if ($pos === false &amp;&amp; arg(0) =='news') {
    return TRUE;
   }
 ?&gt;