I have tried everything you write and other things I have googled.
My version is 7.12.4
I have created different landing pages and inserted e.g. Top-Logo (topLogo) in document types with media picker (for choosing logo) and in Partial Views a Top-Logo.cshtml with first line
resolved after 3 weeks of struggling with this problems.
@{
var pickedMediaId = Model.Content.GetPropertyValue
We are considering moving our web platform to wordpress which has plugins for everything you need instead of umbraco systems where you have to reinvent the wheel as soon as you need to insert a function.
Also, it seems like no one is active on this forum anymore. Umbraco was certainly good for its time in 2008 but now is 2020 and this is too old.
Get image from media picker with leblender?
Hello,
Im trying to get image url from Media Picker. I have created a grid editor with LeBlender Editor.
But i cant figure out how to get image url from media picker. Here is what i have done so far:
I just get this error: Object reference not set to an instance of an object. Can anyone help?
Figured it out my self:
Hi, Christian, I have the same issue.
My code also throws a "Object reference not set to an instance of an object."
Any idea?
Thanks,
A
Hi Adrian,
First always check if image is not null. Maybe the image will be deleted later and then the page would crash.
I have had issues that sometimes I would need to restart the site to get the property registered correctly.
If that does not work then it would be helpful if you would write out what kind of an object you are getting.
If it writes out an integer then you are using the old Media picker.
Hi, I having the same problem but I am using Umbraco 8.
I encountered this erro Object reference not set to an instance of an object.'
with below code.
Hi!
I have tried everything you write and other things I have googled. My version is 7.12.4 I have created different landing pages and inserted e.g. Top-Logo (topLogo) in document types with media picker (for choosing logo) and in Partial Views a Top-Logo.cshtml with first line
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
and every kind of code here under ...
and
It looks hopeless to me ..
Anyone have a suggestion?
resolved after 3 weeks of struggling with this problems.
var pickedMediaId = Model.Content.GetPropertyValue
We are considering moving our web platform to wordpress which has plugins for everything you need instead of umbraco systems where you have to reinvent the wheel as soon as you need to insert a function.
Also, it seems like no one is active on this forum anymore. Umbraco was certainly good for its time in 2008 but now is 2020 and this is too old.
Bye!
is working on a reply...