Define i site definition

3 posts, 0 answers
  1. IT Department
    IT Department avatar
    21 posts
    Member since:
    Apr 2007

    Posted 26 Apr 2007 Link to this post

    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. Johan
    Johan avatar
    617 posts
    Member since:
    Mar 2007

    Posted 26 Apr 2007 Link to this post

    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

  3. IT Department
    IT Department avatar
    21 posts
    Member since:
    Apr 2007

    Posted 27 Apr 2007 Link to this post

    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

Back to Top