Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • jlacis 19 posts 39 karma points
    Dec 21, 2012 @ 15:15
    jlacis
    0

    Vimeo provider and Umbraco 4.11 (MVC)

    issue connected with this forum topic 

    http://our.umbraco.org/forum/using/ui-questions/37016-embeded-video-datatype?p=0

     

    I use UMP Vimeo provider to create 'enbedded video data type'

    as I wrote in that topic,

    this works only, when I edit my MVC template and save it, using umbraco template editor. 

    but:

    1. I have to insert umbraco fpage field, using the editor. after that my code looks 

      @Umbraco.Field("myVimeoVideo")

         <umbraco:Macro field="myVimeoVideo" Alias="umpVimeoVideo" runat="server"></umbraco:Macro>

    2. when I save my template, it is being converted into .aspx page

     

    also tried to use @Umbraco.RenderMacro()

     @{

           var macro1= umbraco.macro.GetMacro("umpVimeoVideo");

     

          var dict=new Dictionary<string, object>();

          dict.Add("field", Model.Content.GetPropertyValue("myVimeoVideo"));

         }

        @Umbraco.RenderMacro("umpVimeoVideo",dict)  

        @Umbraco.RenderMacro("umpVimeoVideo", new { field = Model.Content.GetPropertyValue("myVimeoVideo") }) 

     but in all cases RenderMacro returns empty mvcString

    does UMP Vimeo provider support mvc 3 Razor?

    or it is a bug?

Please Sign in or register to post replies

Write your reply to:

Draft