コンテンツエディターWebパーツにビデオを表示します
-
16-10-2019 - |
質問
視聴者向けに最新のトレーニングコンテンツを提示する目的で、YouTubeなどからビデオリンクを表現できるMoss 2007クライアントサイドソリューションを探しています。私はCEWPとDVWPがここで助けることができると考えています。
現在、ホームページのページビューアーWebパーツを使用しています。現在のビデオリンクを使用して、毎回リンクプロパティを更新する必要があります。悪くはありませんが、アーカイブはどうですか?理想的には、アーカイブされたビデオリンクのタイトル、URLなどを備えたLVWPが欲しいです。ユーザーは、リスト/ライブラリのビデオをクリックするよりも、同じページにあるCEWPに供給されます。
この場合、Visual Studioによるカスタム開発はオプションではありません。 Data View Webパーツまたはおそらく接続可能なWebパーツを使用してクリエイティブである必要があります。
解決
これは、JAAPが言及した表示を処理するものを構築できる.DWPファイルです。使用するクリックイベントストーリーを決定する必要がありますが、これにより設定したリンクが表示されます。リストをクエリするためにコードを追加するだけです。
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>SharePoint Videos</Title>
<FrameType>Standard</FrameType>
<Description>Use for formatted text, tables, and images.</Description>
<IsIncluded>true</IsIncluded>
<ZoneID>Left</ZoneID>
<PartOrder>3</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>
<IsIncludedFilter />
<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[<br>
<div align=center>
<SELECT id=cancion onchange=document.all.music.filename=document.all.cancion.value; size=1 name=Music> <br>
<OPTION selected>::::: Choose the Video to Play :::::</OPTION><br>
<OPTION value="https://home.sharepoint.private.massmutual.com/Documents/Office2007ECMPart1-DocMgmt.wmv"> Office 2007 ECM-Part 1</OPTION><br>
<OPTION value="https://home.sharepoint.private.massmutual.com/Documents/Office2007ECMPart2-DocMgmt.wmv"> Office 2007 ECM-Part 2</OPTION><br>
</SELECT><br>
<BR> <br>
<OBJECT id=music height=400 width=400 classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95> <br>
<PARAM NAME="AutoStart" VALUE="true"> <br>
</OBJECT> <br>
</div> <br>
]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
他のヒント
カスタムjQueryスクリプトを備えたCEWPを使用します。
jqueryスクリプトは、LVWPの各アイテムのイベントハンドラーをオンクリックします。オンクリック、できます YouTubeビデオを挿入します クリックしたアイテムのパラメーターを使用して、CEWPのプレースホルダーの内部。
SharePoint用のポッドキャスティングキットを見ることも検討しましたか?http://pks.codeplex.com/