activityTemplateContainer Element
An activityTemplateContainer element is a template that allows you to format your activity feed items and reuse XML that specifies a layout. Use IDs (applicationID and templateID) to match a feed item (activityDetails) to a template (activityTemplateContainer). Store the layout data as part of the activityTemplate element. To reference data that is pulled from the individual activity feed item, use template variables as placeholders for information such as people, links, and text.
The following table describes the three elements that the activityTemplateContainer element requires.
Element | Description |
---|---|
applicationID |
One of two unique IDs that are used to match the feed item with its template. If you have multiple applications or other groupings, this can be used as a first-tier template organizer. |
templateID |
The second unique ID that is used to match the feed item with its template. This can be used as a second-tier template organizer. |
activityTemplate |
The layout of the template (icon, title, and data elements), and the type of activity (type element). |
The following table describes the child elements of activityTemplate, which describe the layout and the type of a template.
Element | Description |
---|---|
icon |
A link token, which references the URL for the icon for that feed item. |
title |
The required information for the feed item. |
type |
The type of activity, such as an update of status, photo, or document. |
data |
Any additional information for the feed item, such as pictures, text, or links. |
For an example of activity feed XML, see Activity Feed XML Example