Add the tag widget to the portal content
By default, the tag widget is available for Web Content Manager article template pages and blogs and wikis. We can also add tag widgets to the portal content as required. To include a tag widget in a portal page, a portlet or other portal content, insert the following HTML snippet into your JSP or other code:
<div class="wpTaggingLight"> <div class="label"> <label class="text" ></label> </div> <div class="menu" > <a role="link" tabIndex="0"> <img src='img_Src' border="0" /> </a> </div> <div class="divider1" ></div> <span class="tags" resource_ID="my_ID"></span> <div class="divider2" > </div> <div class="moretags" > <a href="javascript:;" onclick='getMoreTags("${resource_ID}");'> </a> </div> <div class="divider3" ></div> <div class="addtag"> <a > <img src='img_Src' border="" width="12" height="12" /> </a> </div> <span class="addtag"> <input type="text" name="text"> </span> <div class="errorMessagedivider"></div> <div class="errorMessageStyle" > <img src="" border="" width="16" height="16" /> <label class="errorMessageText" ></label> </div> </div>
These parameters are mandatory. For information about the optional parameters, read the Tag widget parameter reference.
- resource_ID
- For the resource ID, specify the identifier of the piece of content that shows the widget. This identifier needs to be unique. For example, for a portal page, specify the portal object ID of that page.
- src
- Specify the appropriate values for the src attribute for the images. To obtain these values, copy them from the src attributes for images from the Web Content Manager HTML - Tag Widget Light - Menu component. Proceed as follows:
- In Web Content Manager, go to Applications > Content > WCM Authoring > Libraries > Web Resources v70 > Components.
- Select the check box for HTML - Tag Widget Light - Menu.
- Click Read and copy the src attribute value that you found here.
- Paste the value into your code for including the tag widget.
Parent topic: The tag widget
References: