Hi all,
This issue is currently driving me up the wall. I have a slideshow block and a "featured content" block if you will, that I only want to display on the home page of my site.
Thus far I've went into block settings and set the blocks to display only on < Front >. This works great when I click a link, but the problem I'm having is that the blocks still show up when I click the pager links for more content.
So below my blocks are all the most recently posted nodes, with pagers at the bottom "1, 2, next>" etc etc, but when I click on page "2" I don't want my slideshow block to display.
Is there any way to truly limit blocks to only the front-most page?
Any help is greatly appreciated, cheers!
Comments
I just did a little search
I just did a little search and found some PHP code that seems to be working. If anyone else is interested, this code goes in the php section of the block display settings.
In your code change "?" with
In your code change "?" with "page=", because if you don't have "clean url" active you will get always a "?"
M.
Freelancer Senior Drupal Developer -- http://www.ziobuddalabs.it
thanks for the tip
thanks for the tip Ziobudda.
@CMS, that solution works but if you click on the pager links for the rest of the nodes on the frontpage, the blocks will still be visible.
I'm not sure if this is the
I'm not sure if this is the result your looking for ..
refer http://drupal.org/node/966776
this limits the visibility of a block to a particular page!!