Re: [web2py] Re: vimeo and auth.wiki

2012-09-21 Thread Martin Weissenboeck
Sorry for asking again. Maybe the answer is very simple, but I could not find it. *(a) What is the right way to apply a css class to a markmin text?* I have found `` text ``:css_class but this construct seems to stop the oembed protocol (see the 2nd example below). *(b) I want to call the functi

Re: [web2py] Re: vimeo and auth.wiki

2012-09-20 Thread Leonel Câmara
To use css you just define styles normally in the css files you include in your view (probably layout or other parent view) or even, if you prefer, in a style tag, they may need to override the default ones and for this you have to consider the css precedence rules but a good rule of thumb is th

Re: [web2py] Re: vimeo and auth.wiki

2012-09-20 Thread Martin Weissenboeck
> *Massimo*: auth.wiki is great! I have copied http://vimeo.com/8952354 to a page. Ok, it works fine, but the picture is bigger than the page and I have to scroll. Therefore I want to adjust the width. Using CSS: sorry, I did not understand how to use CSS together with a wiki page. Are there speci

[web2py] Re: vimeo and auth.wiki

2012-09-20 Thread Massimo Di Pierro
You can still define your own extension but the the suggested behavior is designed to be more intuitive and leave the width and height size to the CSS. On Thursday, 20 September 2012 09:35:06 UTC-5, Leonel Câmara wrote: > > Well but it should be possible. Here's how it could be done > > def vime

[web2py] Re: vimeo and auth.wiki

2012-09-20 Thread Leonel Câmara
Well but it should be possible. Here's how it could be done def vimeo(code, width=400, height=250): """ ## Embeds a vimeo video (by code) - ``code`` is the code of the video - ``width`` is the width you want the video to have - ``height`` is the height you want the video to hav

[web2py] Re: vimeo and auth.wiki

2012-09-20 Thread Massimo Di Pierro
You simply cut and paste a link to the video in the text as below: http://vimeo.com/8952354 You cannot choose width and height. Vimeo choses that for you. On Thursday, 20 September 2012 07:46:43 UTC-5, mweissen wrote: > > I want to embedd a vimeo video in a auth.wiki page. > > In the plugin_wiki