Andy Fung

I would adding a WebPart, or SmartPart, to MySite Template,

such that all users, creating the MySite, will have this WebPart at the MyHome@MySite.

Can anyone point me some direction on that



Re: SharePoint - Design and Customization Adding WebPart to MySite Template


Re: SharePoint - Design and Customization Adding WebPart to MySite Template

Andy Fung

Thanks, John.

After hours of search and testing, I would modify the SPSPERS template file

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\SPSPERS\XML\onet.xml

I am still testing to add one more RSS Viewer WebPart by copy a code block within the onet.xml

I can see the newly added RSS Viewer. However, the RSS cannot preset a URL Feed. I doubt that whether I need to encode the URL Feed

Code Block
<AllUsersWebPart WebPartZoneID="MiddleLeftZone" WebPartOrder="5"><![CDATA[
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
'>http://schemas.microsoft.com/WebPart/v3">http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.SharePoint.Portal.WebControls.RSSAggregatorWebPart,Microsoft.SharePoint.Portal,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>$Resources:spscore,WPImportErrorMessage</importErrorMessage>
</metaData>
<data>
<properties>
<property name="Title" type="string">$Resources:spscore,RSSViewer_WebPart_Title;</property>
<property name="Description" type="string">$Resources:spscore,RSSViewer_WebPart_Description;</property>
<property name="ChromeType" type="chrometype">TitleOnly</property>
<property name="CacheXslStorage" type="bool">true</property>
<property name="CacheXslTimeOut" type="int">600</property>
<property name="FeedUrl" type="string">http://news.google.com/news q=Microsoft&output=atom</property>

<property name="ParameterBindings" type="string">&lt;ParameterBinding Name="RequestUrl" Location="WPProperty[FeedUrl]"/&gt;</property>
<property name="DataSourcesString" type="string">
&lt;%@ Register TagPrefix="WebControls" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;
&lt;%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %&gt;
&lt;WebControls:XmlUrlDataSource runat="server" AuthType="None" HttpMethod="GET"&gt;
&lt;DataFileParameters&gt;
&lt;WebPartPages:DataFormParameter Name="RequestUrl" ParameterKey="RequestUrl" PropertyName="ParameterValues"/&gt;
&lt;/DataFileParameters&gt;
&lt;/WebControls:XmlUrlDataSource&gt;
</property>
</properties>
</data>
</webPart>
</webParts>]]>
</AllUsersWebPart>