Adding the tag widget to your portal content
By default, the tag widget is available for Web Content Manager article template pages and blogs and wikis. You can also add tag widgets to your portal content as required.
About this task
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 id="tagginglight_${resource_ID}" class="wpTaggingLight">
<div class="label">
<label class="text" id="tagginglightlabeltext_${resource_ID}"></label>
</div>
<div class="menu" >
<a id="tagginglightmenulink_${resource_ID}" role="link" tabIndex="0">
<img src='img_Src' border="0" title="" />
</a>
</div>
<div class="divider1" id="tagginglightdivider1_${resource_ID}"></div>
<span id="tagginglighttagslist_${resource_ID}" class="tags" resource_ID="my_ID"></span>
<div class="divider2" id="tagginglightdivider2_${resource_ID}">
</div>
<div class="moretags" id="moretagslink_${resource_ID}">
<a id="tagginglightmoretagslink_${resource_ID}" href="javascript:;"
onclick='getMoreTags("${resource_ID}");'>
</a>
</div>
<div class="divider3" id="tagginglightdivider3_${resource_ID}"></div>
<div class="addtag">
<a id="tagginglightAddTaglink_${resource_ID}">
<img src='img_Src' border="" width="12" height="12" title="" />
</a>
</div>
<span id="tagginglightinput_${resource_ID}" class="addtag">
<input id="tagginglightinputField_${resource_ID}" type="text" name="text">
</span>
<div id="tagginglighterrordivider_${resource_ID}" class="errorMessagedivider"></div>
<div class="errorMessageStyle" id="tagginglighterrorDiv_${resource_ID}">
<img src="" border="" width="16" height="16" title="" />
<label id="tagginglighterrorlabel_${resource_ID}" class="errorMessageText" ></label>
</div>
</div>
- 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 .
- 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
Related reference: