When you try to open an item that was added to a discussion board by using the list Web part in SharePoint Server 2007, the item does not open

When you try to open an item that was added to a discussion board by using the list Web part in SharePoint Server 2007, the item does not open

Article ID : 953452
Last Review : June 25, 2008
Revision : 1.0

SYMPTOMS

When you try to open an item that was added to a discussion board by using the list Web part in Microsoft Office SharePoint Server 2007, the item does not open. Instead, you are redirected to the default Web page for the site. This behavior occurs after you use the Onet.xml custom site definition configuration file to add the list Web part to the SharePoint Server 2007 site. The code that defines the Web part in the Onet.xml file resembles the following.

<View List=$Resources:core,lists_Folder;/$Resources:core,discussions_Folder; WebPartZoneID=Left BaseViewID=0 WebPartOrder=3 Type=HTML RowLimit=5Url=$Resources:core,lists_Folder;/$Resources:core,discussions_Folder;/>

Back to the top

CAUSE

This issue may occur if the XML parser cannot find a matching content type ID. This content type ID must be defined in the View element code of the discussion board Web part for the content type of the folder that you are trying to open. If the parser determines that the content type ID is associated with the content type of the folder, you are redirected to the view for the content type of the folder that corresponds to the content type ID. However, if the parser cannot find a content type ID that is defined in the View element code, it automatically determines the content type of the folder. In this scenario, you are redirected to the default view for the content type of that folder.

For example, assume that the content type of the folder that you are trying to open is the discussion content type. Assume also that the content type that you want to define is the root folder of the list. In this scenario, you will be redirected to the default view of the discussion content type unless you use the content type ID for the root folder of the list. The default view for the discussion content type is the flat view. Therefore, you will be redirected to the flat view.

Back to the top

RESOLUTION

To resolve this issue, add the ContentTypeID attribute together with the content type value 0x012001 to the View element code of the discussion Web part in the Onet.xml file. To do this, modify the View element code as follows.

<View List=$Resources:core,lists_Folder;/$Resources:core,discussions_Folder;WebPartZoneID=Left BaseViewID=0 ContentTypeID=0x012001 WebPartOrder=3 Type=HTML RowLimit=5 Url=$Resources:core,lists_Folder;/$Resources:core,discussions_Folder;/>

Back to the top

MORE INFORMATION

For more information about the Microsoft Windows SharePoint Services 3.0 site content types and content type IDs, visit the following Microsoft Web sites:

http://msdn.microsoft.com/en-us/library/ms472236.aspx (http://msdn.microsoft.com/en-us/library/ms472236.aspx)
http://msdn.microsoft.com/en-us/library/aa543822.aspx (http://msdn.microsoft.com/en-us/library/aa543822.aspx)
http://msdn.microsoft.com/en-us/library/ms452896.aspx (http://msdn.microsoft.com/en-us/library/ms452896.aspx)

Back to the top


APPLIES TO
• Microsoft Office SharePoint Server 2007

Back to the top

Keywords: 
kbexpertiseadvanced kbtshoot kbprb KB953452

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image