J
Juan Estevan Madrigal
I'm trying to add a Project Server webpart to the default PWA template
onet.xml. This is so that our user will have a provisioning site already
loaded with the appropriate webparts when they create a new project.
The problem is that all the Project server webparts contain some JScript
inside
a <![CDATA[ section within the <Content> element in the <WebPart>. Since
there cannot be
nested CDATA sections, loading the default template fails...
Here's a sample [Notice the nested CDATA Sections]
<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
<![CDATA[
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Project Report</Title>
blablabla....
<ContentLink
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">
<![CDATA[
<script language="JScript">
var sLoc = window.location.toString();
blabla.....
}
</script>
]]></Content>
<PartStorage
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
]]></AllUsersWebPart>
How can project server webparts be added to the default template? I can't
find an answer.
Thanks. Fernando Mesa.
onet.xml. This is so that our user will have a provisioning site already
loaded with the appropriate webparts when they create a new project.
The problem is that all the Project server webparts contain some JScript
inside
a <![CDATA[ section within the <Content> element in the <WebPart>. Since
there cannot be
nested CDATA sections, loading the default template fails...
Here's a sample [Notice the nested CDATA Sections]
<AllUsersWebPart WebPartZoneID="Left" WebPartOrder="1">
<![CDATA[
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Project Report</Title>
blablabla....
<ContentLink
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">
<![CDATA[
<script language="JScript">
var sLoc = window.location.toString();
blabla.....
}
</script>
]]></Content>
<PartStorage
xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
]]></AllUsersWebPart>
How can project server webparts be added to the default template? I can't
find an answer.
Thanks. Fernando Mesa.