Community articleTemplated event titles
Added by IBM contributorIBM on September 5, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


IBM Connections allows for the introduction of two kinds of template in the title of a connections.
  • Object substitutions - where an appropriate representation of a known object within the event is substituted into the title.
  • Title template substitutions - these use the above object substitutions, providing a full title that is appropriately resourced.
In both cases above, a submitted event.title is converted into an event.content if and only if no event.content is present within the event. Where an event.content is provided by the POSTer of an event, this value is mantained and returned in any ActivityStream feed that is retrieved.

Object Substitution

A number of substitution values are supported within a submitted event.title. These are specified using the ${} marker.
  • ${Actor} - this is converted into appropriately marked up HTML which displays the Actors name and links to a Business Card corresponding to the Actor
  • ${Object} - if this is a person we display as with the Actor above, otherwise the displayName with a link to the url
  • ${Target} - if this is a person we display as with the Actor above, otherwise the displayName with a link to the url

The event.content is generated from the title, exactly substituting as appropriate.

Title Template Substitution

A number of templates are available which provide the additional facility of localised content, as the particular text appropriate for the locale of the viewing user is used when retrieving the event. These are also specified using the ${} marker.

Available templates (in English)

  • ${add}=${Actor} added ${Object}.
  • ${}=${Actor} added ${Object} to ${Target}.
  • ${create}=${Actor} created ${Object}.
  • ${}=${Actor} created ${Object} in ${Target}.
  • ${post}=${Actor} posted ${Object}.
  • ${}=${Actor} posted ${Object} to ${Target}.
  • ${comment}=${Actor} created a comment.
  • ${}=${Actor} commented on ${Target}.
  • ${like}=${Actor} liked ${Object}.
  • ${}=${Actor} liked ${Object} in ${Target}.
  • ${update}=${Actor} updated ${Object}.
  • ${}=${Actor} updated ${Object} in ${Target}.
  • ${share}=${Actor} shared ${Object}.
  • ${}=${Actor} shared ${Object} with ${Target}.
  • ${follow}=${Actor} is now following ${Object}.
  • ${stopFollowing}=${Actor} has stopped following ${Object}.
  • ${tag}=${Actor} tagged ${Object} with ${Target}.
  • ${join}=${Actor} is now a member of ${Object}.
  • ${invite}=${Actor} has invited ${Object}.
  • ${}=${Actor} has invited ${Object} to ${Target}.
  • ${access}=${Actor} has accessed ${Object}.
  • ${}=${Actor} has accessed ${Object} in ${Target}.
  • ${assign}=${Actor} has assigned ${Object} to ${Target}.
  • ${accept}=${Actor} has accepted ${Object}.
  • ${reject}=${Actor} has rejected ${Object}.

Default template

In the absence of a title or content in the submitted event, we attempt to create an event title based on the verb used in the event. If we cannot to this we use the ($Updated) emplate above