Well sort of.

I don't want the default listing of "recent everything", so using CCK and views, I've created two blocks that I want to basically make up the homepage of the site I'm working on. They each pull a specific number of posts sorted a specific way. What I want to do is have them on the homepage by themselves.

My problem is, if turn off "Promote to front page" on every node then the "Welcome to your new Drupal Site" message comes back above my two blocks. If I create a separate page "Home", add those 2 modules to it and set it as the default homepage, then it adds an h2 at the top that says "home" so I have an extra floating heading in the middle of my page (which also adds a block of empty space and pushes my content down).

Are there any simple ways to fix this? I really don't want to remove the h2 from the top of every page as I want it on all the others, just not the homepage.

Comments

WhatTheFawk’s picture

I think that's a small bug in Drupal actually, if you have a block set to the content area it really shouldn't display all that info. However it does this for me also so I can confirm it in 5.1. If nothing is 'Published to front page' AND there are blocks set to display in the content area you will still receive the "Welcome to your new Drupal website! Please follow these steps to set up and start using your website:" message.

So I guess whatever checks if any nodes are published to front page should also check if there are any blocks assigned to the content area. You should submit this to the issue query as a bug report, if not I will tonight.

You also might want to check out the panels module http://drupal.org/project/panels

gnotorious’s picture

Hmmm? That's not really what I'm looking for though. I just need to remove either the main page <h2> from a page to use as the homepage or remove the automatically generated posts from the default homepage. Anyone have any brilliant ideas?

nevets’s picture

In your page.tpl.php you probably have something like

<h2><?php print $title ?></h2>

to completly remove it change to

<?php if ( ! $is_front ) { ?>
  <h2><?php print $title ?></h2>
<?php } ?>

As long as you have set the page to be the default home/front page this should work.

mohammed76’s picture

hi.

it's quite simpler than what you folks are suggesting. simply navigate to administer / site configuration / site information, and change the fronpage from node to the custom view you have made.

Mohammed al-shar'

Nattiq Technologies

Mohammed al-shar'

The Explorer

gnotorious’s picture

Right but then it automatically adds an h2 at the top of the page with a page title and a whole lot of empty space before my first block.

OH WAIT!!! YOU'RE RIGHT!!!!

If I use the page I created with views for the first content and add the block of the other content to that then it's perfect! I was trying to create a page and add both of the blocks to it which was giving me the extra header!

Thank you!

WhatTheFawk’s picture

lol good stuff, here I'm thinking it's impossible or broken, thanks for that bit of info :D