Custom control of SharePoint fields: Media Player

I am trying to implement a custom Media Player control described in this MSDN article: http://msdn.microsoft.com/en-us/library/aa981226.aspx

I created my own site column (Link type) in a custom content type and followed all the steps to deploy the solution to SharePoint and added the control to the page layout.

However, when I create a page based on a page layout that uses this field control, nothing appears in either edit mode or page view.

I dug in the SharePoint logs and during page load I see the following error in ULS:

The "MediaPlayerFieldControl" control template does not exist.

If you implemented this control, did you need to implement anything other than what is the details of the article? Obviously I don't need the ASCX here because the control is handled by the media player.

thank

+1


source to share


3 answers


Found it out ...

I first added the SafeControl entry manually to my web.config and for some reason it didn't work. I now include it in manifest.xml like this:



<Assembly DeploymentTarget="GlobalAssemblyCache" Location="MyControlAssembly.dll">
  <SafeControls>
    <SafeControl Assembly="MyControlAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=07085c2a3fb711ee" Namespace="MyControlAssembly" TypeName="*" Safe="True" />
  </SafeControls>
</Assembly>

      

Don't know what the difference is, but it did the trick

+1


source


SharePoint 2007 has no byte requests. Executing a query on a large media will cause the entire blob to be from SQL and save it to the WFE. I'll be careful how you implement this.



+1


source


copy the MediaPlayerFieldControl.ascs file to the path: "C: \ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 12 \ TEMPLATE \ CONTROLTEMPLATES"

0


source







All Articles