Order of posts and blocks on the front page

virtualj - March 15, 2007 - 09:23

Hello,

I am having some trouble getting the content of my front page in the right order.
This is what I would like to get:
1. Short introduction about the website
2. List of upcomming events
3. News posts

and this is what I have now:
1. Short introduction about the website (the build in drupal mission statement)
2. News posts (stories, promoted to the front page)
3. List of upcomming events (block that uses the event module)

So how do I put the event list, that is a block, between the mission statement and the stories?
I tried setting the weight of the event block to -10 but that didn't help.

url

virtualj - March 15, 2007 - 09:32

the url of the website is: http://www.ask-stuwer.be/new

I think better you use

drupal-id.com - March 15, 2007 - 09:34

I think better you use views.module for flexibility.

New block

drupal-id.com - March 15, 2007 - 09:46

So how do I put the event list, that is a block, between the mission statement and the stories?
I tried setting the weight of the event block to -10 but that didn't help.

you may need to add new block on your theme file and need to change the page.tpl.php to inculde the new block. look at the theming portion on the handbook.

block view

virtualj - March 15, 2007 - 16:03

Thanks for the tip.

I created a block with the view module that shows the last 5 posts (stories), I used this tutorial http://drupal.org/node/63230.
Now I can add this block to content and put it under the event list.

But now I have an other problem.
I removed all stories from the front page (undid promote to front page), because the posts are now in the view. But now I get the message you get when you first installed drupal:

Welcome to your new Drupal website!

Please follow these steps to set up and start using your website:

1. Configure your website
....

Is there a way to remove this? Or should I look for an other way of putting posts on the front page (without views)?

Are all in blocks, or no?

femrich - March 15, 2007 - 09:39

If all of these are Drupal "blocks", then you can change their order by changing the "weight" that corresponds to each item on the block administration page. The lower the weight given, the lighter the block and so the higher it will be on the page. If you give your intro a weight of 0, your news a weight of 1, and your events a weight of 2 (assuming all are "blocks") then you should get the desired results.

If not all are blocks (ie if your stories are just content on the front page) then you might try making your intro "sticky at top of page", promote news items to front, and put your events block in the "content" block to see if that works. Play around with it a bit to see how things move...

Regions

virtualj - March 15, 2007 - 16:32

I found a good solution here: http://drupal.org/node/64316
I just created a new region 'above content' so now I can put blocks above my posts.

 
 

Drupal is a registered trademark of Dries Buytaert.