Google shared items macro

This is a Velocity macro, which isn't bundled with any XWiki product by default.
Macro contributed by JeromeVelociter.
This macro cannot currently be downloaded separately.

GoogleReaderSharedItems Macro

Displays a clip with last $n google reader shared items of user with Id $userId. Title and color are customizables, and the original source of items can be displayed, or not.

Usage

#sharedItems($userId $title $n $color $source)

Parameters definition

NameOptionalAllowed valuesDefault valueDescription
userIdNoa stringnoneThe google reader user Id. Also works with the shared items Web page full URL (available clicking "Shared Items" on the top left menu in google reader)
titleYesa stringempty string (no title)The title that will be displayed in the clip
nYesan integer (or a string containing an number)5How many of the last shared items will be displayed in the clip
colorYes"none","black","gray","khaki","green","pink","slate","blue""none"The color theme the clip will be wearing
sourceYestrue,falsefalseWill the original sources of the items be displayed

Example

#sharedItems("0771831010XXXXXXXXXX", "My RSS shared items", "3", "khahi", "true")

Result

shared-items.png

Tags:
Created by Jérôme Velociter on 2007/09/02 15:02
Last modified by Vincent Massol on 2008/09/30 10:08

This wiki is licensed under a Creative Commons license
2.2.1.27354