]> sipb.mit.edu Git - ikiwiki.git/blob - doc/tips/add_chatterbox_to_blog/discussion.mdwn
effce6c60669f2bfd819bccb77edc115152445fe
[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]]
32
33 >>> Sounds like [[!debbug 380212]]?
34 >>> If so, the fix is to use Text::Markdown, or markdown 1.0.2 instead of buggy
35 >>> old markdown 1.0.1. --[[Joey]]
36
37 >> `ii  libtext-markdown-perl            1.0.21-1                         Markdown and MultiMarkdown markup languages library`
38 >>
39 >> I'm using `Text::Markdown` due to its "multi-markdown" support.
40 >> Maybe update it from CPAN + dh-make-perl (if there's a new one, that is)