|
The templates within the DX Domino Blog Toolkit
control what is displayed and where
within your blog site. Together with 'DX
Tags'
they create a means of making a unique blog
without the need to change the
actual design of the database - therefore opening
it up to the non Domino developers out there.
I'm also hoping that this will also open up
the potential for a 'Domino' piece of software
to be used by non-Domino organisations and
people.
This functionality will also be extended to
the forthcoming 'DX Domino Web Site and Content
manager' - which will enable you to create
dynamic websites that you will be able to be
open up to your customers for their own personalisation
etc.
The three different Templates
There are three different templates that control
the look and feel of your blog site.

The three templates are used for:
Blog Site: This is the main
template and is for the layout of your 'blog
screen' (I
could say homepage - but thats not strictly
true - you can have 'normal' web pages as your
home page - this will be covered in a further
article). This template would normally contain
your header with Logo, site name etc - a means
of navigating your site - with sidebars of
links, referers, comments, (these will be added
soon as components which can be embedded into
your
templates using the DX tag method) etc. You
would then also have an aggregate of your latest
blogs - by month, by week etc - however you
have configured your blog.
To demonstrate the ease of embedding the aggregate
blog to your 'blog page', all you need to do
is position a DX tag - <$BlogContent$> where
you wish it to appear - it would be surrounded
with say <div> tags which then have CSS
positioning information.
Blog Document: This template is for displaying
your individual blogs as individual documents.
Therefore you may have a similar template to
the 'Blog Site' template but with DX Tags to
display one document only. These 'single blog/document'
views are accessed by placing <$BlogPermLink$>
DX Tags inside your 'Blog List' template -
a 'Permanent Link' is then automatically created
for you.
Blog List: This one is for the formatting/display
of the blog aggregate on the main blog page
- ie the blog list. This would generally be
a very simple template and would contain the
DX Tags for your indivudal blogs - which are
formatted and then repeated on your site depending
on how many blogs there are to display.
A typical Blog List template would look like
this in DreamWeavers WYSIWYG display:

- and like this is raw HTML:
<table style="background-color:#f1f1f1;margin:2px;color:black;font:verdana" width="100%"
border="0" cellspacing="1" cellpadding="1">
<tr>
<td style="font-family:Arial, Helvetica, sans-serif;font:bold 11pt;color:black"><$BlogDayName$>, <$BlogMonthName$> <$BlogDay$><$BlogDayDesc$>, <$BlogYear$></td>
<td style="font:8pt" width=30%>Author:<span
style="font:bold"> <$BlogAuthor$></span></td>
</tr>
<tr>
<td><$BlogSubject$></td>
<td style="font:8pt" width=30%>Time: <b><$BlogTime$></b></td>
</tr>
<
/table>
<
br>
<
span style="margin:2px;color:black;font-family:Arial, Helvetica, sans-serif;font:8pt">
<
$BlogItemContent$>
<
p> </p>
Permanent Link: <$BlogPermLink$><br><br>
<
/span>
Questions? -
steve.castledine@projectdx.org
|