Hi there!
Since I was asked about how I coded the template to achieve this structure, I want to share with all of you what I did:
It's actually quite easy to do with WebsiteBaker. Just make use of sections and blocks, specific WB features. That at least was my original plan, although I altered it a bit eventually.
The template starts with the usual header with image and main navigation.
Main text areaThe main text area, i.e. where articles are postet, is a section. In the template it is called with
<?php page_content(1); ?>The info.php file defines:
$block[1]="Artikel";Since I use the news system as a pseudo blog system (see more details below) I only needed to define once that the first section should display the block "Artikel", as a news element.
However, on the startpage this block is defined as a code element instead. I use the code
$pid = 2;
$gc = $database->query("SELECT content_long FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = ' ".$pid." ' ");
$rc = $gc->fetchRow();
echo $rc['content_long'];to display a news of my choice (currently the news with post id 2).
Author portraitThe author portrait was originally planned as a section too, but I found more practicable to use another version of blocks here.
These blocks are just simple pages you create in your system. Use the "Blank Template" for such, which is delivered along with the WB installation.
The block is called in the template with
<?php include (WB_URL."/pages/blocks/personalia.php"); ?>Topic navigation/Blog menuSince I use news and wanted to have a blog-like menu for them, I use Eki's faboulus blog menu. See here for details:
https://forum.websitebaker.org/index.php/topic,6563.0.htmlBlog menu is called in my templage with
<?php display_blog_menu(2,1,0,0,2); ?>Anything elseThe elearning news, delicious bookmarks and amazon book suggestions are hardcoded into the template, since this works better than putting them into code sections as I had originally planned. Dunno why but amazon and delicious caused troubles, thus I just put them directly into the template.
ExtrasI should also mention, that I use chio's snippet "simple_pagehead". With this snippet individual
meta tags suche as keywords and description can be attached to each news page individually -- quite important for a blog.
For a better
RSS feed I altered the rssnewsfeed-module a little and installed it. My version is available here:
http://www.websitebakers.com/pages/code-snippets/listings/rss-news-feeder.phpForum threads that helped me in developing this were:
- Code Snippet Display news items:
https://forum.websitebaker.org/index.php/topic,409.0.html- Display a blog menu:
https://forum.websitebaker.org/index.php/topic,6563.0.html- How can I call the content of a page...:
https://forum.websitebaker.org/index.php?topic=9564.new;topicseen#new- Latest News modul thread:
https://forum.websitebaker.org/index.php/topic,11523.0.html (which I couldn't use though because of the missing support for comments)
- Problem with rss in news module (fixed):
https://forum.websitebaker.org/index.php/topic,8469.0.htmlExternal websites I needed to include the external RSS feed:
- magpie homepage:
http://magpierss.sourceforge.net/- Tutorial on including external RSS feeds:
http://www.traum-projekt.com/forum/73-workshops-und-tutorials/100486-tutorial-rss-feed-eigene-website.htmlI have attached a screenshot in order to illustrate my somewhat humble explanation.
Best regards,
spida
[edited this article on January 23rd 2009 by adding some hints to other modules I used and WB forum threads that helped me]
[gelöscht durch Administrator]