Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
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="5"
Url="$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:
Back to the top
APPLIES TO
| • | Microsoft Office SharePoint Server 2007 |
Back to the top
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate
Be the first to leave feedback, to help others about this knowledge base
article.
(Optional) Name
(Optional)
Public URL Or Email
Comments
No
HTML -- Text Only Please