Skip to main content

Activities template

Description

This template is used by the Activities Widget to display a list of recent activities that occurred on the site.

Control classes

ClassDescriptionRequired
mambo-ctrl-earnDisplays the "How do I earn points?" popup when clickedNo

Template data

VariableDescriptionType
heightHeight of the activities widgetInteger
titleTitle to display for the current activitiesString
dataList of activities to display. For complete details, refer to the Activities API documentationObject
isLoadingFlag indicating whether activities are still loadingBoolean

Implementation example

This example shows a basic activities template with loading state handling:

JavaScript

Customisation options

Consider these enhancements:

  • Adding user avatars or profile pictures
  • Including timestamps and activity categories
  • Implementing filtering by activity type
  • Adding pagination for large activity feeds
  • Creating interactive activity items with expandable details