on installing umbraco and opting for the txt starter kit, i get an error on the home page...
The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Content(params int[])' and 'Umbraco.Web.UmbracoHelper.Content(params string[])'
Line 6: <div id="banner-wrapper" style="background: url('@CurrentPage.BannerBackgroundImage') center center no-repeat;">
Line 7: <section id="banner">
Line 8: <h2>@Umbraco.Field("bannerHeader")</h2>
Line 9: @*<span class="byline">@Umbraco.Field("bannerSubheader")</span>*@
Line 10: <a href="@Umbraco.Content(CurrentPage.BannerLink).Url" class="button">@Umbraco.Field("bannerLinkText")</a>
It will be something to do with refrences in your refrence section. Try removeing all the code and running the page, do you get the error still?. Add code back in until you find the error. Hope thi helps. Charlie :)
home page error
on installing umbraco and opting for the txt starter kit, i get an error on the home page...
The call is ambiguous between the following methods or properties: 'Umbraco.Web.UmbracoHelper.Content(params int[])' and 'Umbraco.Web.UmbracoHelper.Content(params string[])'
Line 6: <div id="banner-wrapper" style="background: url('@CurrentPage.BannerBackgroundImage') center center no-repeat;"> Line 7: <section id="banner"> Line 8: <h2>@Umbraco.Field("bannerHeader")</h2> Line 9: @*<span class="byline">@Umbraco.Field("bannerSubheader")</span>*@ Line 10: <a href="@Umbraco.Content(CurrentPage.BannerLink).Url" class="button">@Umbraco.Field("bannerLinkText")</a>
Source File: c:\Dev\MyUmbracoSite\Views\Partials\umbHomepageBanner.cshtml Line: 8
how do i fix this?
Mark,
Which version of umbraco have you installed?
It will be something to do with refrences in your refrence section. Try removeing all the code and running the page, do you get the error still?. Add code back in until you find the error. Hope thi helps. Charlie :)
Seems to be an issue with the bannersubheader and this specific line:
<span class="byline">@Umbraco.Field("bannerSubheader")</span>
If the subheader is disable the error disapear...
-Kurt
Appear in 7.0.2
-Kurt
Ah ok that is becuase there is no property called bannerSubheader on the doc type.
You either need to remove that code or add that property to the doc type?
Did you experience this on a starter kit? If so and you can replicate it raise it as a bug :)
If you need any more help send us a message :). Charlie.
Hi Charlie,
Yes indded it a bug wit hthe starter kit... Please provide info on how to add to the doc type.
Best
Kurt
Hi Kurt.
What starter kit was it? I will take a look for you tomorrow.
If you can replicate it submit a bug report to: http://issues.umbraco.org/dashboard. :)
I dont know the doc type.
If you go to the home node on one of the tabs will be 'document type'
If you go to the developers section > Document types
There will be that doc type you saw on the home node.
You need to add the correct property to this doc type with the alias "bannerSubheader"
Hope this helps :)
Charlie :)
It's the http://html5up.net/txt/ starterup kit that causes alle the troubles...
-Kurt
I've also run into this problem after installing the starter kit. There is also an issue for this: http://issues.umbraco.org/issue/U4-3633
Jeroen
Thanks Jeroen!!!!
-Kurt
Yea i installed it, sorry not been able to update x. I got the same thing. there is a bug submitted :D. Charlie.
Thanks Jeroen :D
is working on a reply...