Copied to clipboard

Flag this post as spam?

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


  • Yoda 1 post 21 karma points
    Nov 15, 2013 @ 16:26
    Yoda
    0

    How to solve the call is ambiguous issue in Belle RC Version?

    Hi, 

    I am having issues running this partial page in my template. The error that I am getting is - 

    The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Content(params int[])' and 'Umbraco.Web.UmbracoHelper.Content(params string[])'

     

    How can I solve this one as both seems to be referring the same i.e. Umbraco.Web.UmbracoHelper.Content. 

    @if (CurrentPage.hideBanner == false)
    {
       <!-- Banner -->
        <div class="jumbotron" style="background: url('@CurrentPage.bannerBackgroundImage') center center no-repeat">
            <h1>@Umbraco.Field("agBannerHeader")</h1> //ERROR
            <p class="lead">@Umbraco.Field("agBannerSubheader")</p>
            <p><a class="btn btn-lg btn-success" href="@Umbraco.Content(CurrentPage.BannerLink).Url" role="button">@Umbraco.Field("bannerLinkText")Get started today</a></p>
        </div>
       <!-- /Banner -->
    }
  • Yannick Smits 321 posts 718 karma points
    Nov 21, 2013 @ 12:28
    Yannick Smits
    0

    I have posted a bug report and a workaround which worked for me at:
    http://issues.umbraco.org/issue/U4-3633

Please Sign in or register to post replies

Write your reply to:

Draft