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. You can make the dialog tag widget available for own content.
To make the dialog tag widget available for own content items use the following code:
By programming code:var widget = new com.ibm.widgets.AddTag({ resourceID: myResourceID, resourceTitle: myResourceTitle });
By declaration:<div dojoType="com.ibm.widgets.AddTag" resourceID="myResourceID" resourceTitle="myResourceTitle"></div>To add the tag widget declaratively, you can place it wherever you want within html code.
The parameter values have the following meaning:
myIDUse this parameter to specify an identifier that identifies the resource that you want to make available for tagging by users. This needs to be unique.
myResourceTitleUse 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