Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

How do you add a CEWP to a custom area template?

  Asked By: Aurelio Head         Date: Sep 27, 2006      Category: Sharepoint      Views: 225
 

What is the code to add a CEWP to a custom area definition? I know how
to add things such as events, doc lib, or discussion group, but not a
CEWP.

Tagged:                  

 

2 Answers Found

 
Answer #1       Answered By: Adrienne Greene          Answered On: Sep 27, 2006       

In the <File> tag add  …

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

<![CDATA[ ]]></AllUsersWebPart>

Put the correct web part zone ID, web part order and drop the DWP file in the CDATA section.

 
Answer #2       Answered By: Joshuah Huber          Answered On: Sep 27, 2006       

Be sure not to next CDATA tags. I call this "GhostBuster Bad". If you
need a CDATA inside of another CDATA you must escape out the inner CDATA
tag.

 
Didn't find what you were looking for? Find more on How do you add a CEWP to a custom area template? Or get search suggestion and latest updates.


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