Changes for page TwitterMacros

Last modified by Ludovic Dubost on 2009/01/02 17:09

From version 1.1
edited by Ludovic Dubost
on 2009/01/02 15:18
Change comment: There is no comment for this version
To version 3.1
edited by Ludovic Dubost
on 2009/01/02 16:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -4,17 +4,18 @@
4 4  
5 5  #macro(twitter_display $list)
6 6  <table>
7 -#foreach($msg in )
7 +#foreach($msg in $list)
8 8  <tr>
9 9  <td style="border: 0px; border-bottom:1px dashed #D2DADA;">
10 -<a href="$msg.user.url">$msg.user.name</a> $msg.text
10 +<a href="$msg.user.URL">$msg.user.name</a> $msg.text
11 11  <span style="color: #A2AAAA; font-size: 10px;">$xwiki.formatDate($msg.createdAt) #if($msg.source!="")from $msg.source #end</span>
12 12  </td>
13 13  </tr>
14 14  #end
15 -#end
16 16  </table>
16 +#end
17 17  
18 +
18 18  #macro(twitter_search $text)
19 19  #set($tg = $xwiki.parseGroovyFromPage("Twitter.TwitterGroovy", "Twitter.TwitterGroovy"))
20 20  #set($twitter = $tg.getTwitter("xwikiapi", "xwapi2008"))