By rickardl on
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
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
have you tried the panels
have you tried the panels module?
Nope
Panels is for 4,7 and 5.x only
One idea would be to use the
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.
.
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
.
As i have it at the moment..
the code is in page.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 ?
You need to investigate the
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".
you can also add new regions
you can also add new regions in your template file... there's a video tutorial on this.