Closed (fixed)
Project:
Drupal core
Version:
6.1
Component:
block.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2008 at 16:09 UTC
Updated:
27 Mar 2008 at 18:32 UTC
I'd like to have a block only show up on the first page of my site home. As it stands, putting "front" page specific visibility settings puts the block on the site home, and all the other "sub-home" pages....i.e. my home page is a list of stories 5 pages long...I want the the block to show up only on the first page of the list of stories.
How do I go about this?
Comments
Comment #1
scoutbaker commentedIs this really related to the theme? I'm moving this over to core since it should be a function of block.module.
Comment #2
robloachComment #3
scoutbaker commentedThanks for the update Rob.
Comment #4
robloachThat first TRUE in there should be a FALSE, I think.
Comment #5
ardarvin commentedSorry, I'm a little new to PHP, and unfamiliar with the:
(x ? y : TRUE)
Syntax. Could someone explain to me what this does, i.e. what the "?" and ":" operators do?
Thanks.
Comment #6
scoutbaker commentedhttp://us3.php.net/manual/en/language.operators.comparison.php
Comment #7
ardarvin commentedSweet...code works great, although I changed the "<=1" to "<1" because the code was showing on the first 2 pages. I guess page numbers are indexed from 0?
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.