This extension for Kirbytext will make it possible to use
(dailymotion: http://www.dailymotion.com/video/xnhtlb_somebody-that-i-used-to-know-walk-off-the-earth-gotye-cover_music width: 200 height: 100 class: dailymotion-video)
in your content files, in order to embed video from french video plateform Dailymotion http://www.dailymotion.com/
Put kirbytext.extended.php
in your site/plugins
folder (or edit it)
In your content text files you can now use the new dailymotion tag:
(dailymotion: http://www.dailymotion.com/video/xnhtlb_somebody-that-i-used-to-know-walk-off-the-earth-gotye-cover_music)
http://www.dailymotion.com/video/xnhtlb_somebody-that-i-used-to-know-walk-off-the-earth-gotye-cover_music
is just the url of the video, you can use the embed url direclty too http://www.dailymotion.com/embed/video/xnhtlb
You can pass all parameters, which are also available for the dailymotion plugin:
(dailymotion: video_path width: xxx height: xxx class: xxx)
Feel free to change the $defaults
array in kirbytext.extended.php
to add the values which fit best to your project.
// customize this:
$defaults = array(
'width' => c::get('kirbytext.video.width'),
'height' => c::get('kirbytext.video.height'),
'class' => ''
);
Those defaults will make it possible to use the dailymotion tag without specifying all the attributes.