XWiki Tips & Tricks - Recent Blog Entries Macro

Jun 07 2016

Continuing the ”XWiki Tips and Tricks" series, today we’d like to share a sleek macro that allows you to display the most recent blog posts on your wiki in a single block.

The Recent Blog Entries macro supports the following parameters:

  • totalEntries, that is the total number of blog post entries displayed by the macro
  • blocTitle, the title of the macro
  • category, the doc fullName of the category of blog posts that you want to display

Note none of the parameters are mandatory.

For example if you write the following:
{{recentblogentries totalEntries="3" blocTitle="What's New" /}}
you’ll get:

RecentBlogEntries.png

Clicking on the macro title takes you to the blog, clicking on the user avatar takes you to the user profile, while clicking the blog post title takes you directly to the corresponding blog entry.

We recommend using the Extension Manager to install this extension. If you'd like to discover more macros, make sure you check out the dedicated extensions wiki.