Microsoft Office Tutorials and References
In Depth Information
It’s a lovely, simple way to demonstrate web part connections, which is why I suspect Microsoft
even has the web part available for use.
Media and Content
In the Media And Content category, there are a number of web parts, such as Content Editor,
Image Viewer, Page Viewer, Picture Library Slideshow, and Silverlight.
Content Editor The Content Editor web part (CEWP) has been somewhat diminished in its
capabilities for this version of SharePoint (I suspect in order to increase partner
opportunities). This web part is primarily intended to simply contain content, like a Word document,
to be displayed in a web part. It also can display the contents of a file if it can be accessed by a
URL address. It no longer has a rich-text editor or source editor built into it.
Instead, it allows you to basically format its content as any other rich content on a wiki page.
However, the web part can be minimized, moved around on the page as a chunk more easily,
and exported and imported to other pages or site collections.
WHAT, CEWP HAS NO SOURCE EDITOR?!
Previously, the CEWP was a jack-of-all-trades, able to contain rich content or, using the source editor,
HTML code, Java, and JScripts. However, for this version of SharePoint, there is no source editor for
the CEWP. You can edit the web part’s HTML source by clicking in its content area and then using the
Format Text ribbon’s HTML Source button. However, SharePoint now modifies any script you enter
into that source box, possibly rendering it inoperable. Instead, you can try putting the scripts you do
want in a text file and refer to that using the content link field for the CEWP. The web part still
supports displaying the contents of a file without modification, so your code will work as expected. It’s an
awkward workaround, but a workaround nonetheless.
Image Viewer The Image Viewer web part is meant simply to display an image. You just
configure the web part with the URL address of the image to display (the easiest way to do
this is upload the file to a library on the site that all users can read and then use its address—
each file in a library has a URL). This web part is used to add simple pictures to the web part
page. It is particularly useful for inserting a graphic element on a page that isn’t a wiki.
Page Viewer The Page Viewer web part is still just as powerful as it always has been, because
there’s no deprecation here. The Page Viewer web part uses an iframe (which can be exploited
for cross-site scripting, so be aware) to display the contents of a file, a web page, or even a
shared folder. Unlike the CEWP, the Page Viewer web part can handle HTML FORM elements.
So if you need to use FORM in your HTML script, put it in a file, and run it through the Page
Viewer, rather than the Content Editor web part.
Picture Library Slideshow This web part is a bit of eye candy, using up resources ( serious
CPU resources on the client machine) flipping through the pictures in a picture library. But,
it can be useful, possibly showing the progression of a building project or displaying a
montage from a successful event. You can configure the web part to show all the pictures in a
picture library or just selected ones (you can’t specify how many times it cycles through them,
though) and whether it shows the title and description of each, as well as how long you look
at each one before moving on.
 
Search JabSto ::




Custom Search