I updated our company website online with some actual projects / photos. So i created new folders, added all required information and pictures for slideshows in the requested size and suddenly i get this :
Error loading Razor Script ProductSlider.cshtml
Cannot get MediaById without an id
I have no idea what to to. Can someone pleeeease help me.
Hi Guys, first thank you all for the support.
I just killed the whole part of the website and started again - now it works. maybe not the gentleman/pro way to do it... but the result is OK.
Greetings from New Zealand
Thanks again
You are great
Cannot get MediaById without an id
Hi
i am a newbie facing a small problem.
I updated our company website online with some actual projects / photos. So i created new folders, added all required information and pictures for slideshows in the requested size and suddenly i get this :
Error loading Razor Script ProductSlider.cshtml Cannot get MediaById without an id
I have no idea what to to. Can someone pleeeease help me.
Thank you for your support
Cheers
Holger
Hi Holger,
Welcome to Our!
Could you please post the code from ProductSlider.cshtml?
Jeavon
Where you have created new folder inside media folder or in code ?
You can use code like this
@if (CurrentPage.HasValue("imagealias") != null && CurrentPage.HasValue("imagealias") != false)
{ var Image = Umbraco.Media(Umbraco.Field("imagealias").ToString()).Url.ToString();
}
Hi Guys, first thank you all for the support. I just killed the whole part of the website and started again - now it works. maybe not the gentleman/pro way to do it... but the result is OK. Greetings from New Zealand Thanks again You are great
Holger
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.