A 360 degree panoramic photo of the Gateway Arch in St. Louis Missouri.

Des Informations, des Idées, et des Opinions Suspectes - rarement mises à jour et de qualité douteuse.

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>
Same as <BlogEntry> except that it doesn't care which template it is on. By default it will always return a list of the most recent entries.  This is different from <BlogEntry> which by default knows about the context of the template and will return the entries appropriate for that page.

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>
This will output the the entries only belonging to a category "What Ever" on any page.

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

Code:
<Entries id="10">
</Entries>
This will output the entry with ID of 10 (if it exists)

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.








A quick run down of the new Thingamablog tags
Top of Page | Front Page | Newer Post | Older Post  
Add a Comment:
Remember me.
 
or

This background is: shattered.jpg. It has an average lumosity of: 174.93333333333 and came from: subtlepatterns.com
Maybe read No Big Deal, my favourite story I ever wrote.

Powered By Thingamablog 1.5.1