Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi There ,
I have a problem while using Insert_video_1.0.2 package in Umbraco 4.7
I use the macro to insert a youtube video like this & it works :-
<umbraco:Macro SourceUrl="www.youtube.com/watch?v=RjrEQaG5jPM" MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
It works with direct youtube link.
But problem is now I want to insert youtube link from Admin Panel i.e as a page field,textstring (vIDEOURL) like this .
I have tried everything :-
<umbraco:Macro SourceUrl="<umbraco:Item field="vIDEOURL" runat="server"></umbraco:Item>" MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
and
<umbraco:Macro SourceUrl='<umbraco:Item field="vIDEOURL" runat="server"></umbraco:Item>' MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
<umbraco:Macro SourceUrl= <a href="/<umbraco:Item field="vIDEOURL" runat="server"></umbraco:Item> "</a>MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
from Last one I got youtube url ( in the browser's page source) like this /www.youtube.com/watch?v=RjrEQaG5jPM but there was no video .
Please provide the proper syntax & how it work.
Thanks
Hi. You need to use '[#vIDEOURL]' as a macro parameter value like this:
<umbraco:Macro SourceUrl="[#vIDEOURL]" MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"/>
More details about possible macro parameter substitutions you can get here:
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
it works
Thanks man..thank you so much. thats why i love Umbraco......
How can i use recursive="true" with this
<umbraco:macro alias="RenderProperties" pagevalue="[#bodyText]" runat="server"/>
macro?
Hi Alpesh and welcome to our,
If I remember correctly you can make the property recursive by doing this:
<umbraco:macro alias="RenderProperties" pagevalue="[$bodyText]" runat="server"/>
Hope this helps,
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to pass Page Field as a variable in Umbraco Macro
Hi There ,
I have a problem while using Insert_video_1.0.2 package in Umbraco 4.7
I use the macro to insert a youtube video like this & it works :-
<umbraco:Macro SourceUrl="www.youtube.com/watch?v=RjrEQaG5jPM" MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
It works with direct youtube link.
But problem is now I want to insert youtube link from Admin Panel i.e as a page field,textstring (vIDEOURL) like this .
I have tried everything :-
<umbraco:Macro SourceUrl="<umbraco:Item field="vIDEOURL" runat="server"></umbraco:Item>" MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
and
<umbraco:Macro SourceUrl='<umbraco:Item field="vIDEOURL" runat="server"></umbraco:Item>' MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
and
<umbraco:Macro SourceUrl= <a href="/<umbraco:Item field="vIDEOURL" runat="server"></umbraco:Item> "</a>MaxWidth="400" MaxHeight="300" Alias="OEmbed" runat="server"></umbraco:Macro>
from Last one I got youtube url ( in the browser's page source) like this /www.youtube.com/watch?v=RjrEQaG5jPM but there was no video .
Please provide the proper syntax & how it work.
Thanks
Hi. You need to use '[#vIDEOURL]' as a macro parameter value like this:
More details about possible macro parameter substitutions you can get here:
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
it works
Thanks man..thank you so much. thats why i love Umbraco......
How can i use recursive="true" with this
<umbraco:macro alias="RenderProperties" pagevalue="[#bodyText]" runat="server"/>
macro?
Hi Alpesh and welcome to our,
If I remember correctly you can make the property recursive by doing this:
http://our.umbraco.org/wiki/reference/templates/umbracomacro-element/macro-parameters/advanced-macro-parameter-syntax
Hope this helps,
/Dennis
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.