Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Populate pages with webparts from onet.xml

  Asked By: Carter Kerr         Date: Aug 27, 2005      Category: Sharepoint      Views: 399
 

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?


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:              

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].