By c-m on
On my site I have latest news page, which obviously shows news articles.
What I want to do is to create a box/area on my front page that will show the latest news - pretty much similar to the "new forum topics" box on the drupal.org site.
I presume the box must be created in the theme?
Can anyone help with this?
Thanks
Comments
Use Views
The best solution would be to use Views to find all news posts and display them in a block. I have something like this on a website I set up for my school's Drama Club, the only difference is that that news block is set to show in the content area. You could do it in the theme, but the Views solution would probably be the simplest.
actually, taxonews module may be easier
without even getting into views, you can see what it will look like with taxonews module and simply throw the blocks on side or in content region and set expirations and all of that...but yeah, views will give you way more control over exposure of the content....
Thanks for the replies. Both
Thanks for the replies. Both suggestions sound like they will work i.e will put the required contented onto the page of my choice.
The issue however is that I want the "news" to be constraned in a right-aligned box with the actual "normal" front page content flowing around it. Just like on the recent posts on the Drupal website.
Can this be done with Views alone? I thought I might need to create a special region or content area within the theme in which to place the block/view. hence why i posted this in the theme development section.
In my past experience with views, it did indeed add my desired content to the front page, but as a story, above the main content - which is not what i want.
Thanks
taxonews does just that...
it will let you toss the terms and titles directly into a block - then you go to block admin and put them where you want - views should offer something quite similar...
half way there
I'm slowly getting there. My view works now which is good.
Having played around with the block admin, where exactly is the option to place my block anywhere I want?
All I can see is the ability to place it in the following panels. left, right, footer, header or content.
What I need to be able to place the block around the top right-hand corner of the content area. It needs to be contained by a box and boarder - How do I do that?
Thanks
that's theme or panels or a custom page...
if your theme does not have those extra regions defined, then you're going to need panels (not out for d6 yet) or you'll need to style a theme to do it, or alternatively you could make the front page a special page (some node set as front page in admin with all sorts of custom styling to display this way)