Adding Tagging Web Parts including Tag Cloud and URL/Tag Browser into WSS and MOSS sites
Have you used del.ci.ous or technorati? Tagging can help users easily identify the data which is relevant to what they are looking for. The tag cloud is the semantic map of the contents in your site, which can quickly tell us what’s popular in your site. Do you want to have tagging features in your SharePoint blog, wiki or team sites? We have implemented the Tag Cloud and Tag Browser Web Parts for Latest Windows SharePoint Services (WSS) 3.0 and Microsoft Office SharePoint Server (MOSS) 2007. Here’s the instruction about how to add the tagging web parts to your site and how to integrate your site into the web parts.
Showroom
Please send us an e-mail at tips@wsssearch.com if you'd like to add your sites to our Showroom list.
Since we posted manual instructions, we received many feedbacks on automating the manual steps. We wrote an installer program, DeploySPTagging.exe, to automate the old steps. The new instruction shows you how to use this program. For reference, we put the old instruction under the "Instructions without DeploySPTagging.exe" section.
Instruction with DeploySPTagging.exe:
- Running the installer program
- Download our zip file (WSSSearchWebParts.zip) and expand all files to a folder (e.g. C:\WSSSearchWebParts
- Open a command prompt
- Run the following command from the downloaded folder, DeploySPTagging SITENAME LISTNAME, where the SITENAME is your site's URL and LISTNAME is the list you want to add a "tags" metadata. e.g.
C:\WSSSearchWebParts> DeploySPTagging http://wsssearch Announcements
This command will configure the web.config, copy files to the correst locations, register the web parts, and create a new metadata for the Announcement list. If you want to add the metadata column to other list, please run the command again with the different list name. Once the program completes, you should see no errors in the log. These two messages will be written on the console output:
New SharePoint Tagging Web Parts is installed.
New SharePoint Tagging Web Parts is activated.

- Import the Tag Cloud into a web part page of your site
- Open a command prompt Open a Web Part Page on your server, e.g. Home
- Select Edit Page from the Site Actions menu in the upper right corner of the page, and click Add a Web Part in one of the zones.
- In the Add Web Parts dialog box, click Advanced Web Part gallery and options in the lower right corner.
- In the Add Web Parts pane, click Import.
- Browse to the location of the TagCloud.dwp file at the downloaded folder, and then click the Upload button. After uploading, the page will refresh, and "Tag Cloud" should be displayed under Imported Web Part.
- Drag the icon next to "Tag Cloud" to a zone on the Web Part Page.
- Click "x" to close the "Add Web Parts" dialog box.
- Click "Exit Edit Mode" to confirm the change.
- Browse to the web page you just added the web part and see if it renders correctly with no errors. Now you should see the title of the web part only, because the site does not have the tags data.
- Testing the Web Part
- Please create a new item and type "wsssearch" in the Tags field. Click OK.
- Go back to the home page, you should see "Wsssearch" in the TagCloud tag cloud. You will be redirected to /tags.aspx page when you click on the tag. This page is a pre-configured web part pages with the tag browser and tag cloud web parts.
- Enoy tagging!
Instructions without DeploySPTagging.exe:
- Deploying the Tag Cloud Web Part - adding the web part to see the semantic map of your site (screenshots coming soon)
- Copy our Web Part’s assembly (here) to the C:\Inetpub\wwwroot\wss\VirtualDirectories\PORT\bin folder of your SharePoint site, where PORT is the port of your site, e.g. C:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin
- Register your Web Part as a safe control:
- Open the web.config file at C:\Inetpub\wwwroot\wss\VirtualDirectories\PORT\web.config, where PORT is the port of your site, e.g. C:\Inetpub\wwwroot\wss\VirtualDirectories\80\web.config.
- Add the following lines in the <SafeControls> block: <SafeControl Assembly="WSSSearchWebParts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fd98c7c413b27ce6" Namespace="WSSSearchWebParts" TypeName="*" Safe="True" />
- To allow custom web parts using the SharePoint Object Model, increase the trust level in Windows SharePoint Services from minimal (default) to medium by opening the web.config file at Local_Drive:\Inetpub\wwwroot and replacing the following line: <trust level="WSS_Minimal" originUrl="" /> with the following: <trust level="WSS_Medium" originUrl="" />
- Reset Microsoft Internet Information Services (IIS) for changes in trust level to take effect.
- Download the Tag Cloud Web Part Definition file (SPTagCloud.dwp)
- Import the web part into a web part page of your site.
- Open a Web Part Page on your server, e.g. Home
- Select Edit Page from the Site Actions menu in the upper right corner of the page, and click Add a Web Part in one of the zones.
- In the Add Web Parts dialog box, click Advanced Web Part gallery and options in the lower right corner.
- In the Add Web Parts pane, click Import.
- Browse to the location of the TagCloud.dwp file, and then click the Upload button. After uploading, the page will refresh, and "Tag Cloud" should be displayed under Imported Web Part.
- Drag the icon next to "Tag Cloud" to a zone on the Web Part Page.
- Click "x" to close the "Add Web Parts" dialog box
- Click "Exit Edit Mode" to confirm the change.
- Browse to the web page you just added the web part and see if it renders correctly with no errors. Now you should see the title of the web part only, because the site does not have the tags data. The next step will show you how to add additional field(metadata) to your exiting lists in your WSS site.
- Add Tags Column to WSS lists - the Tag Cloud web part can automatically pull tag data from the columns
- Go to the Home page and click on Site Actions
- Select Site Setting
- Under Gallaries column, click on Site Columns
- Click “Create”
- Enter “Tags” in the Column Name fields
- Select “Single line of text”
- Enter "Please use , as the delimiter between keyword tags" in the Description field
- Click OK
- By doing the above steps, the "Tags" column can be reused.
- Go to any lists you want to add the new tags column, e.g. Annoucement
- Go to the Announcement list from the homepage.
- In the list page, click on Setting and select List Setting
- Under Columns section, click on"Add from existing site columns"
- Select Custom Columns and select Tags, and click Add.
- The “Tags” column is moved to the right-hand side. Click OK.
- The list will show the new Tags column
- When creating/editing items, the form will show the Tags field.
- To test the tag cloud web part, please create a new item and type "wsssearch" in the Tags field. Click OK.
- Go back to the home page, you should see "Wsssearch" in the TagCloud tag cloud. You will see an "404 not found" error when you click on the tag. It's because you haven't created a page for listing items tagged with the tag. Please follow the next step to create a page for the tag browser
- Create a new page for tags browser - links in the Tag Cloud web part is redirected to the tag browser web par
- Go back to Home
- Click on Site Actions
- Click on Create and select "Web Part Page"
- Please enter “tags” into the Title and URL name field
- Select "Header, right column, body" layout
- Go with the default value "Shared Documents" for the document library
- Click OK
- A page at http://PORTALURL/Shared Documents/Tags.aspx will be created
- You will see the page in edit mode, please follow the instruction below to deploy the tag browser web parts
- Deploying the Tag Browser web part to the new page - the Tag Browser web part shows the titles and URLs of items with tags
- Download the Tag Browser web part (SPTagBrowser.dwp)
- Go to the new page for tags browser you created in the previous steps.
- Import the web part into the page
- Click Add a Web Part in one of the zones, e.g. body
- In the Add Web Parts dialog box, click Advanced Web Part gallery and options in the lower right corner.
- In the Add Web Parts pane, click Import.
- Browse to the location of the TagBrowser.dwp file, and then click the Upload button. After uploading, the page will refresh, and "Tag Browser" should be displayed under Imported Web Part.
- Drag the icon next to "Tag Browser" to a zone on the page
- Click "x" to close the "Add Web Parts" dialog box.
- You should see "No tags specified in the query". It's expected
- Click "Exit Edit Mode" to confirm the change.
- Please copy the part of the current URL after the PORTALNAME up to the question ? mark.
- e.g. http://wsssearch.com/Shared%20Documents/tags.aspx?PageView=Shared.
- Go back to the home page
- Click on down arrow of the Tag Cloud web parts
- Click on "Modify Shared Web Part"
- Expand the Tagging Setting section
- Make sure if the text displayed in the TagPageURL field is correct, e.g. "/Shared%20Documents/tags.aspx" or the landing URL of your tags page. If not, please paste the URL to the TagPageURL field.
- Click OK. The links on the tag cloud will forward to the page
- To test it, please go back to the home page.
- Click on the tag in the tag cloud web part
- It should redirect to the new page you just created and add the "?tags=TAG_NAME" to the url. The tag browser should show the title and url of list item with the tag TAG_NAME.
- You are done with web parts deploying. You can add the Tags column to any lists you want. The tag cloud web part automatically put data from every Tags column.
If seeing any bugs or having any questions/comments, please do not hesitate to send us an e-mail at tips@wsssearch.com. We will upgrade the code after hearing your feedbacks.
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.