]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/add_chatterbox_to_blog.mdwn
(no commit message)
[ikiwiki.git] / doc / tips / add_chatterbox_to_blog.mdwn
1 If you use twitter or identi.ca, here's how to make a box
2 on the side of your blog that holds your recent status updates
3 from there, like I have on [my blog](http://kitenet.net/~joey/blog/)
4 --[[Joey]] 
5
6 * Enable the [[plugins/aggregate]] plugin, and set up a cron
7   job for it.
8 * At the top of your blog's page, add something like the following.
9   You'll want to change the urls of course. Be sure to also change
10   the inline directive's [[PageSpec]] to link to the location the
11   feed is aggregated to, which will be a subpage of the page
12   you put this on (blog in this example):
13
14         \[[!template id=note text="""  
15         \[[!aggregate expirecount=5 name="dents" url="http://identi.ca/joeyh"  
16         feedurl="http://identi.ca/api/statuses/user_timeline/joeyh.atom"]]  
17         \[[!inline pages="internal(./blog/dents/*)" template=microblog
18         show=5 feeds=no]]
19         """]]
20
21 * To filter out `@-replies`, append "and !*@*" to the [[ikiwiki/PageSpec]].
22   The same technique can be used for other filtering.
23
24 Note: Works best with ikiwiki 3.10 or better.