Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Content Editor Webpart

  Asked By: Eddy Smith         Date: May 22, 2006      Category: Sharepoint      Views: 465
 

Can someone elaborate on what type of customization content editor
webpart can be used for and for what others it cannot be used. Is
there detailed info about the web part somewhere on net ?

Tagged:      

 

7 Answers Found

 
Answer #1       Answered By: Cassidy Sharpe          Answered On: May 22, 2006       

http://www.google.com/search?q=content+editor+web+parts

there is stuff on the net!

 
Answer #2       Answered By: Linda Mason          Answered On: May 22, 2006       

If you haven't, it's a must-read for the SharePoint developer/admin.

 
Answer #3       Answered By: Hans Weiss          Answered On: May 22, 2006       

I think my favorite trick is using it as a style sheet overrider.

 
Answer #4       Answered By: Damon Garner          Answered On: May 22, 2006       

A better question would be: Can the group share the difefrent type  of
customizations that they have used content  editor for?

 
Answer #5       Answered By: Freddy Heath          Answered On: May 22, 2006       

If it helps, I've also used the CEWP to create the HTML form elements, DHTML/JavaScript and CSS to create a custom Boolean search page to hit the SPS Search page with a custom "where" clause.

 
Answer #6       Answered By: Joanna Dixon          Answered On: May 22, 2006       

IMPORTANT: Be sure to consider how to make CEWP type  changes
maintainable by doing one of the following (from memory):

1. Link to a single, common file rather than embedding the code in the
CEWP
2. Consider upgrading from an instance page to the direct-mode page (be
careful to position the CSS and JavaScript in the proper place in the
page). Also note that customized (unghosted) pages will not be affected.
3. Consider upgrading from an instance page to all pages in your site
definition using attributes of the Project element in the ONET.XML file.
Customized (unghosted) pages WILL be affected.
4. Consider upgrading to a Farm level solution.

See my blog for detailed instructions and examples.

 
Answer #7       Answered By: Gopal Jamakhandi          Answered On: May 22, 2006       

Your question should really be "What can't the CEWP do?". ;

Basically, the Web Part was designed to add HTML to a Web Part Page.
This gives you the ability to add any kind of static text that you want
in any format that you want. What I discovered was that although you
cannot have a <Form> tag lots of other tags are also supported.

So, you CAN have <script> tags and you CAN have <style> tags. This opens
up a world of opportunity to apply CSS and JavaScript to the page to
effect how the page renders. Since these technologies cascade (use the
attributes scoped closest to the rendering) and the CEWP is placed on
the page AFTER all other CSS and JavaScript are defined, you can have
significant client-side impact on nearly every aspect of the page.

 
Didn't find what you were looking for? Find more on Content Editor Webpart Or get search suggestion and latest updates.


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