Search This Blog

Thursday, May 27, 2010

How to embed video in SharePoint page

Here are the steps, how to add video(media file) on Sharepoint page:

Add a content editor webpart, go to content source & insert following code:
<div align="center"><embed src="test.wmv" loop="false" autoplay="false" width="800" height="640" enablecontextmenu="false"></embed></div>

Other attributes we can set:
AutoRewind="True/False"
SendOpenStateChangeEvents="True/False"
ShowControls="True/False"
ShowTracker="False/True"
showstatusbar="True/False"
enablecontextmenu="false/true"
TransparentAtStart="True/False"
TransparentOnStop="True/False"
showPositionControls="False/True"
windowlessvideo="1"

Note: replace the test.wmv with your relevant video path & modify other attributes as per your requirement.

Microsoft SharePoint 2010 & related resources download links

Microsoft SharePoint Server Standard 2010 Trial :
http://www.microsoft.com/downloads/details.aspx?familyid=22F68C37-9904-4C74-8E69-5DF025D73F0F&displaylang=en

Microsoft SharePoint Server Enterprise 2010 Trial:
http://www.microsoft.com/downloads/details.aspx?familyid=230ECDFB-89EC-4D4A-8A85-89FD98329F7B&displaylang=en


Microsoft SharePoint Server 2010 for Internet Sites, Standard Trial:
http://www.microsoft.com/downloads/details.aspx?familyid=895A1DBA-0C3F-47A0-8D6D-163B50364335&displaylang=en

SharePoint Server 2010 for Internet Sites, Enterprise Trial:
http://www.microsoft.com/downloads/details.aspx?familyid=43325E40-8934-4C78-AC44-5F0EEB1D42A5&displaylang=en

Microsoft SharePoint Foundation 2010:
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=49c79a8a-4612-4e7d-a0b4-3bb429b46595


Microsoft SharePoint Designer 2010 (32-bit):
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=d88a1505-849b-4587-b854-a7054ee28d66

Microsoft SharePoint Designer 2010 (64-bit):
http://www.microsoft.com/downloads/details.aspx?FamilyID=566d3f55-77a5-4298-bb9c-f55f096b125d&displaylang=en


Sharepoint 2010 Developer Training Kit:
http://www.microsoft.com/downloads/details.aspx?familyid=83A80A0F-0906-4D7D-98E1-3DD6F58FF059&displaylang=en

SharePoint Server 2010: Advanced Developer Training Presentations:
http://www.microsoft.com/downloads/details.aspx?familyid=22882429-EE80-40BB-BA8D-FF55D6E33959&displaylang=en

SharePoint 2010: Professional Developer Evaluation Guide and Walkthroughs:
http://www.microsoft.com/downloads/details.aspx?familyid=CFFB14E8-88A9-43BD-87AA-4792AB60D320&displaylang=en

SharePoint 2010: Getting Started with Development on SharePoint 2010 Hands-on Labs in C# and Visual Basic:
http://www.microsoft.com/downloads/details.aspx?familyid=C010FC68-B47F-4DB6-B8A8-AD4BA33A35C5&displaylang=en

SharePoint 2010 Reference: Software Development Kit:
http://www.microsoft.com/downloads/details.aspx?familyid=F0C9DAF3-4C54-45ED-9BDE-7B4D83A8F26F&displaylang=en

Wednesday, May 26, 2010

Sharepoint Designer 2007 workflow error occurred on Update List Item when field type is Person/Group

Issue:
Sharepoint Designer 2007 workflow error occurred on Update List Item when field type is Person/Group
Solution:
Follow these steps to find an alternate solution:
  • Add a new workflow variable of type string.
  • Add a new workflow step at the begining of the workflow.
  • Copy the value from the people field to the variable.
  • Use the build dynamic string action to add this string to the beginning of the variable -1;# (and the original value of the variable after the string using a lookup)
  • Use the variable in the action that require the value from the people field.

Compare Dates in XSL of DataView webpart

The dates within XSL can not be compared directly. Following is the example how it can be done :

<xsl:if test="number(translate(substring-before(ddwrt:FormatDate(@Created,1053 ,5), ' '), '-', '')) = number(translate(substring-before(ddwrt:TodayIso(), 'T'), '-', ''))" >
< xsl:value-of select="@Title"/>
</xsl:if>

In this example @Created field(SharePoint List column) is compared with current date(TodayIso()).

Sunday, May 9, 2010

MOSS 2007 - Save sub site as a template

If you are trying to save a site as a template in WSS v3 or MOSS 2007 you will find that the link "Save site as template" is only available under Look and Feel at the Top Level of the site collection. Doesn't really help if you want to save a sub site as a template now does it? If you would like to save a sub site as a template you need to append _layouts/savetmpl.aspx to your sub sites url. I am guessing Microsoft just forgot this link and it will be around by the time we go RTM.

If your subsite is :

http://server/sites/site1/site11/default.aspx

You would go to

http://server/sites/site1/site11/_layouts/savetmpl.aspx

and then you would be able to save the site as a template.