This is a migrated thread and some comments may be shown as answers.
Define i site definition
2 Answers 39 Views
This is a migrated thread and some comments may be shown as answers.
IT Department
Top achievements
Rank 1
IT Department asked on 26 Apr 2007, 02:10 PM
Hi.

I'm trying to set up the editor definition in my onet.xml file, so the r.a.d. editor web part is inserted and displayed when I create new sites.

Can you give me an example of how the code should look like? I can't seem to find it anywhere, neither the documentation nor the forum.

Thanks,
Frank

2 Answers, 1 is accepted

Sort by
0
Johan
Top achievements
Rank 1
answered on 26 Apr 2007, 02:14 PM
There is one forum thread that mentions onet xml and rad editor setup, however it is for SP 2003. But still, hopefully it will be useful.

http://www.telerik.com/community/forums/thread/b311D-cdggg.aspx
0
IT Department
Top achievements
Rank 1
answered on 27 Apr 2007, 07:35 AM
Thanks. I had it almost correct yesterday, but got some errors about wrong namespace or something.

Here's the setup that worked for me. This is snippet is for inserting into your onet.xml in your custom site definitions in WSS 3.0 or MOSS 2007.

<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">

<![CDATA[<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">

<Assembly>RadEditorSharePoint, Version=4.0.0.0, Culture=neutral, PublicKeyToken=1f131a624888eeed</Assembly>

<TypeName>Telerik.SharePoint.RadEditorWebPart</TypeName>

<Title>Product Description</Title>

<Description>Enter your product description and picture here.</Description>

<Text xmlns="Telerik.SharePoint">&lt;br&gt;

&lt;table border=0&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;td&gt;&lt;img src="/_layouts/images/lmas/Product.jpg" border=0&gt;&lt;br&gt;Image: JPG Format, 72 DPI, W:375 x H:240 pixels&lt;/td&gt;

&lt;td width=15&gt;&lt;/td&gt;

&lt;td&gt;Insert some text here &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</Text>

<PartOrder>1</PartOrder>

<FrameType>None</FrameType>

<AllowMinimize>false</AllowMinimize>

<AllowRemove>false</AllowRemove>

<IsVisible>true</IsVisible>

</WebPart>]]>

</AllUsersWebPart>

Hope this helps others in similar situations.

Frank

Asked by
IT Department
Top achievements
Rank 1
Answers by
Johan
Top achievements
Rank 1
IT Department
Top achievements
Rank 1
Share this question
or