Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Adding webparts to site definition - Question

  Asked By: Ronald Ramirez         Date: May 02, 2006      Category: Sharepoint      Views: 245
 

I am trying to add some web parts to a custom site definition. I am
able to do it if I add my part to the GAC and get a public key token.
I am trying to do this with webparts only deployed to the bin (using
Ted Pattison's techniques in his 2007 webcast). Is it possible to add
web parts to a site definition without putting the part in the GAC?

Here is the following code chunk.

<WebParts>
<AllUsersWebPart WebPartZoneID="Main" WebPartOrder="2">
<![CDATA[
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
<Assembly> OverdueTasksPart, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=33c030758c3fa08e</Assembly>
<TypeName>OverdueTasksPart.WebPart1</TypeName>
<Title>Your Overdue Tasks</Title>
<Description></Description>
<FrameType>None</FrameType>
</WebPart>]]>
</AllUsersWebPart>
</WebParts>

Tagged:            

 

1 Answer Found

 
Answer #1       Answered By: Kyla Eckert          Answered On: May 02, 2006       

It is possible. Are the Web Part assemblies always already deployed  to
the bin  of the target Web Applications? What are the CAS requirements of
your Web Parts? Can the Web Part run if you deploy them manually to
other sites in the same site  collection?

 
Didn't find what you were looking for? Find more on Adding webparts to site definition - Question Or get search suggestion and latest updates.


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