Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Populate pages with webparts from onet.xml

  Asked By: Carter    Date: Aug 27    Category: Sharepoint    Views: 2007

I am trying to add webparts to a number of pages I have added to my
root, similar to default.aspx. The pages create just fine, but the
specified webparts never show up. Here's an example from onet.xml:

<Module Name="AddAdminPage">
<File Url="admin.aspx">
<AllUsersWebPart WebPartZoneID="Left"
WebPartOrder="1">
<![CDATA[
<WebPart
xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Administrators Only</Title>
<FrameType>None</FrameType>
<Assembly>Microsoft.SharePoint,
Version=11.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c</Assembly>

<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</Type
Name>
<Content
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><b>
;This page is intended to only be used by SharePoint Web Designers
and Administrators.</Content>
</WebPart>
]]>
</AllUsersWebPart>
<View List="10103" BaseViewID="0"
WebPartZoneID="Left" WebPartOrder="2"/>
</File>
</Module>

Any ideas?

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Populate pages with webparts from onet.xml Or get search suggestion and latest updates.




Tagged: