|How to get latest post on homepage|
Ive recently managed a few pages (html) of my proposed site using Dreamweaver CS3. Its a sports site with around 10 posts put up every week about recent events, matches etc. So ideally I'd like to have the newest posts appearing on the home page (simply appearing one below the other). All the content will be written by me. Basically I'd want returning visitors to see the latest posts (3-4 posts) on the home page. I already have a blogger blog but am trying to make 'the move' for several reasons.
I have no idea as to how to go about ensuring that the homepage always displays the newest posts. Can someone please help.
Hi Matt and welcome to WebmasterWorld.
You could use an iframe to insert the content or an include. IMHO those two options would be the easiest without knowing more about how your posts are generated.
There is another option and that is an RSS feed, but I would suggest that in addition to anything else.
>>without knowing more about how your posts are generated
And where and with what the posts are done, and also whether and where archived posts will reside on the site. That all takes a dynamic solution, which Dreamweaver doesn't do. That needs some sort of server side technology, one way or another (which isn't DW).
It might be worth checking into magazine style Wordpress (or other CMS) themes that are customizable, and do accomplish that - including embedding news feeds, videos, galleries and ads. Then DW could just be used for regular static pages and incorporated into the navigation.
[edited by: Marcia at 5:07 am (utc) on Aug. 31, 2008]
Firstly thanks for the reply.
It's a soccer site with me writing the content for each post (basically reviews of each game, latest happenings). There will be a spry menu on the LHS. All posts will be linked to in a static way from this menu. So, whenever I write a new post what I'd like is for it to appear on the home page. Is there a fairly simple way to accomplish this, as I'm totally new to web design and have been using blogger until now.
It might be helpful to let us know what software makes "the posts" and investigate the help files for that software. For example, if it's a vBulletin post, there is ample documentation on how to do this in a variety of ways in their help files - a PHP script, SSI, or RSS feed.
For a shortcut solution, create the post, navigate to it, and copy the location in the address bar. Edit your main page to include the link. This is a manual method and would be a pain, especially if you have other contributors and always want the latest post to display.
Sounds like you are creating a blog, but doing it all manually. Almost everyone (probably everyone apart from you and Brett in his robots.txt blog) uses installed software to manage the blog. Probably PHP, Perl or ASP driven. I suggest you try out some of the popular software packages; wordpress is very common now - but you absolutely must keep it updated.
Ive been making each post as separate html files. Will check out Wordpress - that sounds encouraging - was going crazy because I had no clue about what to do about the posts coming on the home page. Thanks once again.
Incidentally, you can use Blogger on a domain using FTP, and still have static pages done with DW also.