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.

All other Modules

Discuss all other Modules here.

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

Vimeo


Reply

7 Posts   618 Views

Avatar
kindlemanwill

15 September 2011 at 6:14pm Community Member, 68 Posts

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
kindlemanwill

20 September 2011 at 9:26am Community Member, 68 Posts

Nobody used the vimeo modules?

Avatar
kindlemanwill

21 September 2011 at 11:45am Community Member, 68 Posts

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
kindlemanwill

21 September 2011 at 12:25pm Community Member, 68 Posts

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
kindlemanwill

22 September 2011 at 7:26pm Community Member, 68 Posts

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

23 September 2011 at 10:57pm Community Member, 43 Posts

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
kindlemanwill

24 September 2011 at 1:12pm Community Member, 68 Posts

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