Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Vimeo

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 608 Views
  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Vimeo Link to this post

    Hello

    I'd like to be able to embed vimeo vids in my pages. There are two modules that say they do this, the vimeoembbed and vimeoservice modules.

    I have installed them both. awesome. But what do i do next? The documentation says you can use short codes. but what is the format for the codes?

    Ideally I'd like to use the vimeoembebd module, because thats all i really need.

    This is what i have tried: [vimeo clip_id="2805235"] [vimeo id="2805235"] [vimeo id=2805235]

    Thanks

    Will

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: Vimeo Link to this post

    Nobody used the vimeo modules?

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: Vimeo Link to this post

    Ok, i looked at vimeoembed on a fresh install. It gives me a new tab - vimeos on the main horizontal nav,

    adding the config to mysite

    // -- MUST HAVE--
    DataObject::add_extension('SiteTree', 'VimeoDOD');
    // -- RECOMMENDED--
    VimeoDOD::set_exclude_vimeo_from_page_classes(array("ErrorPage"));
    VimeoDOD::set_include_vimeo_in_page_classes(array("Page"));
    // it says VideoPage in the readme, but that won't work unless you create the page type
    VimeoDataObject::add_video(2805235, "Test Video");

    I can now go to a page and choose a vimeo in a new tab content->vimeo using a drop down

    I poked about in the source and then did this in my template:

    <% include VimeoObject %>

    ----------

    So no short code but its working. groovy. Obvious once you know.

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: Vimeo Link to this post

    Further investigation into the vimeo service module

    There isn't a button i don't think. The short codes only work on the gallery page.

    adding this into site confg gets short codes working elsewhere

    ShortcodeParser::get('default')->register('vimeo', array('Page', 'VimeoShortcodeHandler'));

    format is [vimeo id=2805235]

    just posting this incase anybody else isn't quite sure what to expect from the module. Obvious once you know.

    will

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: Vimeo Link to this post

    More self rescue

    I reworked the vimeo service module down to bare basics and made a simple shortcode module that has a button. so basicly i used the youtube module and this one and stripped a bit of code. works for me.

    https://github.com/asecondwill/ssvimeo

  • Platypus
    Avatar
    Community Member
    43 Posts

    Re: Vimeo Link to this post

    Hi,
    thanks for this module!

    Just two issues:

    1. In the readme you write: call the directory "vimeo". It needs to be "ssvimeo", like in the list below in the readme.

    2. In the editor_plugin.js is a pathing issue. In Tinymce the image "V" is not shown. You need to change Line 17.

    image : 'vimeo/images/v.png',

    to

    image : 'ssvimeo/images/v.png',

    But then, it works like charm! Nice and helpful module

  • kindlemanwill
    Avatar
    Community Member
    67 Posts

    Re: Vimeo Link to this post

    Thanks for your feed back! Iv'e made those changes.

    608 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.