Copied to clipboard

Flag this post as spam?

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


  • Vignesh 3 posts 23 karma points
    Feb 25, 2014 @ 14:52
    Vignesh
    0

    How to create vb razor(vbhtml) view in umbraco 7.0.1?

    Is it possible to create vbhtml razor view file in umbraco 7.0.1.

    Thanks

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Feb 25, 2014 @ 16:41
    David Brendel
    0

    Haven't tried to switch to vbhtml in Umbraco yet, but think maybe you can change it on this spot in web.config:

    <compilation defaultLanguage="c#" debug="true" batch="false" targetFramework="4.5">      
      <buildProviders>
        <add extension=".cshtml" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
        <add extension=".vbhtml" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
        <add extension=".razor" type="umbraco.MacroEngines.RazorBuildProvider, umbraco.MacroEngines" />
      </buildProviders>
    </compilation>
    

    Think it's worth a try to change the defaultLanguage to vb instead of c#.

  • Vignesh 3 posts 23 karma points
    Feb 26, 2014 @ 14:01
    Vignesh
    0

    David, Thanks for you replay. I tried this solution but it's not workout for me. Still it creating cshtml view only.

     

  • Peter Hansen 29 posts 72 karma points
    Jun 14, 2014 @ 19:11
    Peter Hansen
    0

    I would also really much like an answer :)

    Tried Davids suggestion but same result as Vignesh.

     

    // peter

  • David Whiteford 26 posts 79 karma points
    Jul 01, 2014 @ 12:44
    David Whiteford
    0

    Hi,

    Did anyone figure this out? I am on v7.1.4 and I cant get vbhtml macros to render at all (via the rich text editor).

    Cheers

Please Sign in or register to post replies

Write your reply to:

Draft