Add the dialog tag widget to the portal content
In the default portal installation the dialog tag widget is available for tagging pages and portlets. We can make the dialog tag widget available for our own content.To make the dialog tag widget available for our own content items use the following code:
- By using using Javascript code:
var widget = new com.ibm.widgets.AddTag({ resourceID: myResourceID, resourceTitle: myResourceTitle });
- By using HTML markup:
<div dojoType="com.ibm.widgets.AddTag" resourceID="myResourceID" resourceTitle="myResourceTitle"></div>To add the tag widget declaratively, we can place it wherever you want within your html code.The parameter values have the following meaning:
- myID
- Specify an identifier that identifies the resources to make available for tagging by the users. This needs to be unique.
- myResourceTitle
- Use this parameter to describe the resource that the user wants to tag. The resource title is shown in the title header bar of the dialog tag widget.
For more parameters refer to the parameter reference for the dialog tag widget.
Parent: The dialog tag widget