Entry Tags

The <BlogEntry> container describes the layout of a single entry. Think of <BlogEntry>… </BlogEntry> as a sub-template within the main template for entries.

When the weblog is constructed, everything between these tags will be replaced with all of the entries for that page.

The <BlogEntry> container takes the following optional attribtues…

Tags that only work between <BlogEntry> and </BlogEntry>:

Tag Replaced With: Type

<$EntryID$>

The unique ID of the entry

Basic

<$EntryDate$>

The post date of the entry

Date

<$EntryTime$>

The post time of the entry

Date

<$EntryDateTime$>

The post date/time of the entry

Date

<$EntryBody$>

The body text of the entry

Hypertext

<$EntryArchivePage$>

The URL of the archive page of the entry

Basic

<$EntryAuthor$>

The name of the author of the entry

Basic

<$EntryAuthorEmail$>

The entry author’s email address

Can take a "mung" attribute which hides the address from spam robots.

Example: <$EntryAuthorEmail mung="1"$>

Basic

<$EntryAuthorURL$>

The entry author’s URL

Basic

<$EntryPermalink$>

The URL of the entry page of the entry.

Basic

 
In addition, the <BlogEntry> container is comprised of the following optional sub containers…

<EntryTitle>

The <EntryTitle> and </EntryTitle> specify how to lay out the entry’s title if it has one. The <$EntryTitle$> tag only has meaning between these two tags.

Example: <EntryTitle> <h2><$EntryTitle$></h2></EntryTitle>

 

Day Headers and Footers

Blog entries can be grouped by days on generated pages through the use of <DayHeader> and <DayFooter>. <$DayHeaderDate$> is replaced with the date of the day and only has meaning between <DayHeader> and </DayHEader>. The Day Header Date will appear at the start of each new day of posts.

Example: <DayHeader><b>Posts for <$DayHeaderDate></b></DayHeader>

Any HTML that you want to appear at the end of a day of posts should be contained within <DayFooter> and </DayFooter>.

Example: <DayFooter> <hr> </DayFooter>

 

<EntryModifiedDate>

If an entry has been modified, you can specify the HTML that signifies the modification through the use of the <EntryModifiedDate> and </EntryModifiedDate> tags. The <$EntryModifiedDate$> is replaced with the date and time of the modification and only works between <EntryModifiedDate> and </EntryModifiedDate>.

Example: <EntryModifiedDate>Edited on: <$EntryModifiedDate$> </EntryModifiedDate>

<EntryCategories>

You can display which categories and entry belongs to through the use of <EntryCategories> and </EntryCategories>.

The EntryCategories container works the same as a <CategoryList> containers and takes the following attributes…

Example:
<EntryCategories glue=",">
<a href="<$CategoryLink$>"><$CategoryName$></a>
</EntryCategories >

 

A typical <BlogEntry> container might look like this:

<BlogEntry>
<DayHeader><h2><$DayHeaderDate$></h2></DayHeader>
<a name="<$EntryID$>"></a>
<EntryTitle>
<h3><$EntryTitle$></h3>
</EntryTitle>
<$EntryBody$>
<br>
Posted by <a href="mailto:<$EntryAuthorEmail$>"><$EntryAuthor$></a> at
<a href="<$EntryArchivePage$>#<$EntryID$>" title="permalink"><$EntryTime$></a><br>
<EntryModifiedDate>
<i>Edited on: <$EntryModifiedDate$></i><br>
</EntryModifiedDate>
Categories: <EntryCategories glue=", "><a href="<$CategoryLink$>"><$CategoryName$></a></EntryCategories><br>
</div>
</div>
</BlogEntry>