Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Vimeo


Go to End


7 Posts   1455 Views

Avatar
kindleman.com.au

Community Member, 70 Posts

15 September 2011 at 6:14pm

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

Avatar
kindleman.com.au

Community Member, 70 Posts

20 September 2011 at 9:26am

Nobody used the vimeo modules?

Avatar
kindleman.com.au

Community Member, 70 Posts

21 September 2011 at 11:45am

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.

Avatar
kindleman.com.au

Community Member, 70 Posts

21 September 2011 at 12:25pm

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

Avatar
kindleman.com.au

Community Member, 70 Posts

22 September 2011 at 7:26pm

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

Avatar
Platypus

Community Member, 43 Posts

23 September 2011 at 10:57pm

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 :)

Avatar
kindleman.com.au

Community Member, 70 Posts

24 September 2011 at 1:12pm

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