• A good example of what I’m trying to do is at http://www.rion.nu
    On the index page he has all of the stuff in the columns on the left, if you go to the permlink for the post the left part is swapped out with the comments.
    I know how to put it together just don’t know how to make the if statement work. (php noob)
    I searched the forums but didn’t come up with much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • that’s done with two different templates… not one. and rion.nu is female, not male.

    there’s a number of things you can/should check if you want to do variable stylings all embedded in index.php. things like $p, $cat, etc. if you just want to modify based on being ‘in’ a post, look for $p>0.
    If you check out my site, you’ll see that I change certain stylings, what is on sidebars, etc., based upon the current page content. Well, if you go into a review, you’ll see bigger differences. 😉 I certainly don’t shift the layout from 1+1+1 to 1+1 or anything that significant, but certainly could.
    but yes, that guy’s site uses a number of php files to swap around the look of things.
    -d
    http://www.chait.net

    I would like to put some code on the index page only, but not within the loop, is there a varibale i can check to see if it’s on the index page and not just the single post?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘things on index.php only?’ is closed to new replies.