A quick run down of the new Thingamablog tags
Thingamablog is still fully compatible with all the old templates, but yes, for the labels, keywords, and other stuff there are new template tags to take advantage of them.
Note: The tag format consisting of: 'less-than' 'dollar sign' 'tag
name' 'dollar sign' 'greater-than' happens to be the same as PHP short
codes. And it seems that short codes can't be set at the page level
with: ini_set('short_open_tag', '0');
Which means that every time this page loads, my error_log fills up.
So I've change the TAMB tags in this article to instead be:
<*EntryID*>. Just know how they really are when you go to work on
your templates.
Code:
<*EntryExtra1*>
<*EntryExtra2*>
<*EntryKeywords*>
<*EntryDescription*>
Containers:
Code:
<AuthorList>
<*AuthorName*>
<*AuthorURL*>
<*AuthorEmail*>
<*AuthorDetails*>
</AuthorList>
Code:
<Ignore>
Anything inside this is ignored and will not be output.
</Ignore>
Code:
<Entries>
</Entries>
Both <Entries> and <BlogEntry> can now take a few arguments to provide more control about what entries get output. Here are some examples:
Code:
<Entries category="What Ever"></Entries>
Code:
<Entries category="What Ever"
entries_between="2008-12-31 AND 2010-12-31">
</Entries>
THis will output the the entries in "What Ever" between 2008-12-31 and
2010-12-31</Entries>
Code:
<Entries id="10">
</Entries>
Also new are "Labels." Labels are similar to categories except that no page is generated for a Label. Labels are use in conjunction with the arguments above to help layout a page. For example, suppose you wanted to have "Sticky posts" at the top of the front page of your blog. You'd create a label called "sticky" and do something like this on the front page template..
Code:
<h1>Sticky Posts</h1>
<Entries label="sticky">
Only "sticky" posts will be here
...
</Entries>
<h2>Regular Blog posts</h2>
<BlogEntry>
The usual blog entry stuff goes here
...
</BlogEntry>
Sticky posts are only one example. You could also list posts with photos, or whatever. There is a new option "Create custom template" if you right click on the "Templates" folder. You could make certain posts show up in a custom template with labels.