Recently did some video tutorials to the Youku station, but I would like to introduce these video tutorials to my site, when I published it I found that weaving dream CMS comes with the editor and does not directly support YouTube and other video site references. So in order to facilitate the release of the tutorial, specifically in the site search for this tutorial, in detail on how to join in the Dream CMS system, such as Youku Station tutorial, divided into a few steps to complete:
- Adding a custom field to a model
- Add the Youku SWF address
- Join the Youku Reference code
First, the realization method
We have just said that to achieve this effect, the self-brought editor does not support. Then we can make use of the content model of the weaving Dream ( Dream template ), where we make the creation based on the default article model (if you are another new model, the method is the same)
1) Adding a custom field to a model
Enter the background, click "Core"--"channel model"-"Content Model Management", click "General article" after the modification, open, switch to [Field management], and then click [Add New Field], the message is as follows: add to save later.
2) Add the Youku swf address
Add a Youku SWF address for this field to play the content page. Of course, the method is to add a document of this model, here is a general article, we added the following information:
Note here that the SWF address of the red background in the illustration above is manually extracted on Youku's playback page.
For example, in the http://v.youku.com/v_show/id_XMjA4MDk4MjQw.html page, it is extracted in the following way:
3) Join the Youku Reference code
Open our current content page template and add the following code on a line on {dede:field.body/}:
<Embed Type="Application/x-shockwave-flash"src="{dede:field.ykswf/}"ID="Movie_player"name="Movie_player"bgcolor="#FFFFFF"Quality=" High"allowFullScreen="true"Flashvars="Isshowrelatedvideo=falseshowad=0show_pre=1show_next=1isautoplay=falseisdebug=falseUserid=wintype=interiorplaymovie=true&MM Control=falsemmout=falserecordcode=1001,1002,1003,1004,1005,1006,2001,3001,3002,3003,3004,3005,3 007,3008,9999"Pluginspage="Http://www.macromedia.com/go/getflashplayer"width=" -"Height=" the"> </embed>
Ext.: http://www.genban.org/news/dedecms-3186.html
Let the dream CMS background editor support Youku video