Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

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

  Asked By: Aurelio    Date: Sep 27    Category: Sharepoint    Views: 730

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.

Share: 

 

2 Answers Found

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

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

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.




Tagged: