Flickr Macro

Last modified by Vincent Massol on 2021/03/17 21:20

cogDisplays a list of images taken from a Flickr RSS Feed
TypeDoc (Velocity Macro)
Category
Developed by

XWiki Development Team

Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Description

This macro is now deprecated. At the moment it's still available but you'll need to edit your xwiki.cfg configuration file and add xwiki.render.velocity.macrolist=/templates/macros.vm,/templates/deprecatedMacros.vm. The macro can be removed at any time and you're highly recommended to stop using it.

For more information on available feeds, see the Flickr web site.

This Macro uses the RSS Macro (Radeox) under the hood and thus works only in XWiki Syntax 1.0

Usage

#flickr($rssfeed)

Parameters definition

NameOptionalAllowed valuesDefault valueDescription
rssfeednoa stringnoneThe URL of an RSS feed

Example

Display latest public photos

#flickr("http://api.flickr.com/services/feeds/photos_public.gne?format=rss2")

The format=rss2 parameter is necessary because the underlying rss macro does not correctly display default Atom content

If you're behind a proxy you'll need to set up correct JVM proxy parameters. For example 

-Dhttp.proxyHost=your_proxy -Dhttp.proxyPort=your_port

Result

flickr.png

Get Connected