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