10379 Posts in 2194 Topics by 1710 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 361 Views |
-
Vimeo

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
-
Re: Vimeo

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.
-
Re: Vimeo

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
-
Re: Vimeo

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.
-
Re: Vimeo

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
| 361 Views | ||
|
Page:
1
|
Go to Top |


