April 12, 2007

Posts

[Note: This documentation is for the updated version of the system that is in testing right now.  Some features documented here may not work correctly just yet. The new version is expected to be available by the end of Sunday, April 15th.]

Quickly
View posts.

Usage [posts {paged|unpaged} {page=n} {count=n} {skip=n} {show=all|publish|draft|pending|expire|user}  {sticky|unsticky|nosticky|stickyonly} {sort=posted|updated|title|comments} {order=asc|desc}]
[posts:here {template=type.name} {options}]

Type block tag, here tag

Data Fields

Text Fields

title, subject, text, keywords, more, memo, meta, misc, abstract, excerpt, notes, custom, tags, reply, warn, mod
{.raw|.esc|.text|.clean}

Info Fields

data, xml
{.raw|.esc|.text|.clean}

Date Fields

date, time, datetime, shortdate, day, month, year

create.date, update.date, start.date, end.date, comment.date, ping.date
[.date|.time|.datetime|.shortdate|.day|.month|.year]

Status Fields

status, type, category, comments, pings, edits, reads, locked, allow.comments, allow.pings, allow.attach, sticky, hidden, defer, expire, flag, ip, ip.hash, filter, number, even, odd, mod.[3|4|5], bytes, kbytes, words, first, last

Display Fields

show.html, show.bbcode, show.smilies, show.macro, show.dict, show.sig

User Fields

author.name, author.nick, author.mail, author.web, author.aim, author.msn, author.yim, author.icq, author.location, author.occupation, author.interests, author.sig, author.hash

ID Fields

id, tid, pid, fid, etid, cfid

Category Fields

category.name, category.desc, category.path, category.nospace

Sub-tags [1]

[post:comments]
[post:pings]
[post:attachments]
[post:links]
[post:images]
[post:stats]
[post:categories]
[post:folders]
[post:sites]
[post:next]
[post:prev]
[post:first]
[post:last]


[1] Sub-tags aren't working yet, but these are the ones that will become available for posts.

[Just checking all of that against the code and typing it up exhausted me... I'll have to fill in all the details tomorrow.]

Posted by: Pixy Misa at 02:47 PM | Comments (7) | Add Comment
Post contains 134 words, total size 4 kb.

1   Funny timezone on this blog!

Posted by: Kean at April 12, 2007 03:24 PM (td1Rl)

2 It's GMT!

Posted by: Pixy Misa at April 12, 2007 03:28 PM (PiXy!)

3 Heeeeeelp! I need the original post template!

Also how do I add categories to the post?

Posted by: Ken Talton at September 16, 2007 12:51 AM (V5zw/)

4 Oh dear. It was right there.....OK I found it.

Boneheaded Beta Tester Is Boneheaded......

Posted by: Ken Talton at September 16, 2007 12:55 AM (V5zw/)

5 I got the categories added to my posts by adding this to my Post template:

Category: [post.category]

My problem is that I wanted to link that text to the category folder and I tried this:

But it didn't work.

Category: <a href="[category.path]">[post.category]</a>

Any ideas?

Posted by: Flibbertigibbet at December 03, 2007 04:50 AM (ru7wW)

6 Um.  I just realised, I cheated when I did that for the standard templates.  I need to fix it.

Basically, the post isn't picking up all the category data automatically; my cheat was to use the category name in the link - which works for me, but isn't correct in the general case.

I'll get this fixed for you.

Posted by: Pixy Misa at December 07, 2007 12:20 PM (PiXy!)

7 Scratch that.  Reverse it!  I actually did it properly, but it's sort of hidden.

Use [post.category.path].  The system is wrapping the category data into the post data.  It does the same for the author - there's a [post.author] object inside the post data containing the user details of the author.

I need do document that better.

Posted by: Pixy Misa at December 08, 2007 01:48 AM (PiXy!)

Hide Comments | Add Comment

Comments are disabled. Post is locked.
15kb generated in CPU 0.1863, elapsed 0.3054 seconds.
32 queries taking 0.2456 seconds, 59 records returned.
Powered by Minx 1.1.6c-pink.