Hi, i have made a template for my frontpage

it looks like this: http://www.c00re.se/test/frontpage.html

now to the question, how can i add/include nodes into these blocks?
i.e. the five top "news" i want there

Comments

alien73’s picture

have you tried the panels module?

rickardl’s picture

Panels is for 4,7 and 5.x only

paulnem’s picture

One idea would be to use the views module, it will allow you to create blocks to go into your regions. Each view can be setup differently, for instance you could list the 5 newest nodes of a particular type.

rickardl’s picture

I have been studying manuals, looked in forum.. i cant find a damn thing

Do anyone know what file i should be editing to use my template? Or should i copy/paste the content of my frontpage.html into a node and promote it to the frontpage?

Are there any examples how i can use Views to get that layout i want?

Really scratching of my hair trying to find a sollution.. help please

rickardl’s picture

As i have it at the moment..
the code is in page.tpl.php..

<?php if ($is_start) include ("front.tpl.php"); ?>

and front.tpl.php has the html code i have shown already

the big mystery is still - how do i include the nodes to the places?

Do i have to do my own module? own sql queries? whatever?

Sure it is possible, but HOW ?

paulnem’s picture

You need to investigate the views module and creating blocks. Each view can be a block, you then activate that block in the region you want.

To promote individual nodes to the front page, when editing the node you can go to "Publishing Options" and click "Promote to Front Page".

alien73’s picture

you can also add new regions in your template file... there's a video tutorial on this.