]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/add_chatterbox_to_blog/discussion.mdwn
7057235c5e3a72cb2f3c0ea76a4428ded43847b7
[ikiwiki.git] / doc / tips / add_chatterbox_to_blog / discussion.mdwn
1 The example you gave looks a bit odd.
2
3 This is what I did from your example (still trying to learn the more complex things ;).
4
5 <pre>
6 \[[!template id=note text="""
7 \[[!aggregate expirecount=5 name=kijkaqawej url=http://identi.ca/kjikaqawej
8 feedurl=http://identi.ca/api/statuses/user_timeline/kjikaqawej.atom]]
9 \[[!inline pages="internal(kijkaqawej/*)" template=microblog show=5 feeds=no]] """]]
10 </pre>
11
12 mine, live, here: <http://simonraven.kisikew.org/blog/meta/microblog-feed/>
13
14 I expected something like: sidebar, with a number, and displaying them in the sidebar, but they don't display (similar to what you have on your blog).
15
16 On the [[/ikiwiki/pagespec]] page, it says "internal" pages aren't "first-class" wiki pages, so it's best not to directly display them, so how do you manage to display them? I'd like to display their name, and what they link to in the sidebar, or otherwise in the main body.
17
18 > That's what the inline does, displays the internal pages.
19
20 > You need to fix your pagespec to refer to where the pages are aggregated
21 > to, under the page that contains the aggregate directive. In your example,
22 > it should be `internal(./blog/meta/microblog-feed/kijkaqawej/*)` --[[Joey]]
23
24 >> Oooh, I see, it's referring to an absolute path (relative to the site), right?
25 >> Thanks :).
26
27 >>> Right, PageSpecs are always absolute paths unless prefixed with `./`
28 >>> (somewhat confusingly since WikiLinks are always realtive unless
29 >>> previxed with `/` ...) --[[Joey]] 
30
31 >> This is not working for me at all, all I get is some SHA1 hash all the time. I've tried variants of the `internal()` arg, and nothing gets spit out. --[[simonraven]]