Hi,

On Sep 8, 2009, at 9:31 PM, Arturo Zambrano wrote:

> Hi,
> I just installed Xwiki and Video Macro (uploaded and imported it as
> described in the video macro page).
>
> As a  result of including the following code:
>
> {{velocity}}
> #includeMacros("Macros.Video")
> {{/velocity}}
>
> {{velocity wiki="false"}}
> #video("http://www.dailymotion.com/video/xr04b_xwiki-round-the-world";)
> {{/velocity}}
>
> In the rendered page viewed with firefox  I get :
>
> <p/>
> <div  style="border: 1px solid #000; width: 520px; height:  
> 411px;"><object
> width="520" height="411"><param name="movie" value="http:~//
> www.dailymotion.com/swf/xr04b&v3=1&related=0"></param><param
> name="allowFullScreen" value="true"></param><param  
> name="allowScriptAccess"
> value="always"></param><embed style="border: 1px solid #000;"  
> src="http:~//
> www.dailymotion.com/swf/xr04b&v3=1&related=0"
> type="application/x-shockwave-flash" width="520" height="411"
> allowFullScreen="true" allowScriptAccess="always"></embed></object></ 
> div>
>
> <p/>
>
> Note: this not the result of viewing the source code, this is how  
> the final
> page looks like.
>
> I guess the problem is xwiki is not using the result of executing  
> the macro
> as part of  the source code of the  page.
>
> I have also tried setting the "wiki" flag to true.
>
> Can anyone give me some piece of advice?

The video macro you mention is a velocity macro written for the 1.0  
syntax and it thus generate HTML.
Thus in syntax 2.0 you need to wrap it in the html macro.

{{velocity}}{{html}}
#video(....)
{{/html}}{{/velocity}}

In the future we'll either create a java macro for it or a wiki macro.
For creating wiki macros, see:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial

This allows you to not have to add the includeMacros and it'll make  
the  macro avail in the wysiwyg editor too.

Thanks
-Vincent

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to