topics:widget

UI component that displays topics assigned to a record and allows users to add and remove topics. The UI component is available only if topics are enabled for these supported objects: accounts, assets, campaigns, cases, contacts, contracts, leads, opportunities, and custom objects.

Example 

This example displays the topic editor widget for an entity.

1<apex:page>
2	<topics:widget entity="0D5x00000009Fhc" customUrl="http://mywebsite/TopicViewTestPage?topicId="/>
3</apex:page>

Attributes 

Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
customUrlstringThe custom URL to a topic page. Salesforce adds the topicId to the end of the URL provided. 29.0
entitystringEntity ID of the record for which to display the feed; for example, Contact.IdYes29.0
hideSuccessMessageBooleanHide the success message that appears when done assigning topics. Defaults to false. 29.0
idStringAn identifier that allows the component to be referenced by other components in the page. 14.0global
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 14.0global
renderStylestringThe style in which the topics widget is rendered. Acceptable values are “simple” and “enhanced”. 29.0