Skip to end of metadata
Go to start of metadata


The my-favourite-spaces macro is used to list spaces marked as favourite for a specific user.

A widget, styled using CSS, showing favourite spaces.

The default output will table of favourite spaces showing their logos, name and a (star) link


which can be clicked to remove them from the favourites.


  1. The (star) link is only shown when viewing your own favourites.

The macro can be used in widgets, Theme Builder layouts and within content such as wiki pages and blog posts.



Macro Parameters





Bubbles Version




The username of the person whose favourites are to be displayed:

  • username - the user's username
  • @self - the currently logged in user (does not output anything for anonymous users)
  • @creator - the user who created the current page, blog or space (as applicable depending on where the macro is being displayed)





Show logos for the listed spaces:

  • true - show pictures
  • false - do not show pictures





The output format for the list:

  • table - tabular format, ideal for use in Widgets
  • list - unordered list, ideal for use in Theme Builder menus




no restriction

Limit the number of spaces listed to a specific number, eg: count=5





The text to be displayed if there is not favourite spaces.


(lightbulb) Tip: Make all your space logos about 48x48 pixels so they don't take up too much space.


 Show favourites for the creator of the current page, space, etc.

When you don't specify a user, the macro will default to @creator which represents the person who created the current page, blog or space (as applicable depending on where the macro is used).




This is particularly useful when you are using the macro on a personal home page or in sidebars.

 Show favourites for a specific user

Specify the user name as the default parameter, eg. to show Joe's favourite users:

 Show favourites for the logged in user

Specify the user as @self, for example:


This is particularly useful when creating a central portal for all users (rather than individual portals) because it allows the portal to reflect the settings of the currently logged in user.

 Changing logo size

To change the picture size, use the size parameter. For example, to set the logos to 24x24 pixels, use:

 Hiding the logos

You can hide the logos using the showImg parameter, for example:

 Outputting spaces in a list

To output users in a list, use the following syntax:


Which will result in something like this:

Hints and Tips

If you are using Theme Builder 3.0, you can embed a list of favourite spaces in to menus using syntax like the following:

  {compound-menuitem:favouritespace|caption=Toggle space as favourite}
  {compound-menuitem:dashboard|icon=earth_view|caption=All spaces...|accesskey=3}

In fact, that's exactly what we've done on our "Home" menu throughout this site. If you're logged in you'll see the extra options.

See Also