Archive for August, 2008

Aug
03
Filed Under (Design, Tips and Tricks) by Andy Diericks on 25-04-2007

One question of my customer today was: Can I show a Flash file on a page ?

He provides me an HTML and the SWF files.

I’ve found two easy solutions:

  • The first, for somebody who don’t know HTML and has receive an HTML file and the flash animation (from a designer or somebody like that), is to upload both files in a library and display the HTML file in a “Page Viewer” webpart. It’s easy and after some clicks you have done it. It can really give a nice look and feel to your site, for internal or external communications for example.
  • The second method and the more obvious is to upload the “.swf” file in a library and add a “Content Editor” webpart on the page. After that edit in source mode and fill with a piece of html, I provided one below but you need to customize it a bit :

<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash
/swflash.cab#version=6,0,29,0″ width=”800” height=”600“>
<param name=”movie” value=”your animation.swf“>
<param name=”quality” value=”high“>
<embed src=”your animation .swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”800” height=”600“></embed></object>

For me the best solution is the second, it’s faster.

Of course it will be another story if you want it on the master page, you will need to play with the “.master” page.  ;-)



Aug
03
Filed Under (Content Type, Libraries and Lists) by Andy Diericks on 25-04-2007

In Sharepoint, content types are the “BIG” thing.

Here is a small answer to a questions that every new site administrator or new end user will have one day.

When you want to add a page or a document in a library, you are doing: “New” -> and you choose a “type of item”, in Sharepoint the type of item is a “Content type”.

To add a content type in the list, you need to go to the library settings and add it to the list of used content type.

To do it:
You need first to allow content type management for the library.

-Go to the “site actions” -> “View all site content”
-Choose your library where you want to apply the content type
-Go to “Settings” -> “Document library settings” -> “Advanced Settings”
-And click on “Yes” below “Allow management of content types?”, validate by clicking OK

Now we can a content type to be used by the list.
-Go to the “site actions” -> “View all site content”
-Choose your library where you want to apply the content type
-Go to “Settings” -> “Document library settings”
-In the middle of the page you will have a content type list (if no, check below)
-Choose “Add from existing site content types”
-And now you will see a screen with a listing of all content types you can use, choose the one you’re interested in and click “Add” -> ok to validate the change.

Now you will be able to choose the content type you need in the list.  8-)