Try our conversational search powered by Generative AI!

Image not showing in editor mode


I’m having a few issues with images not appearing in the editor, and was hoping if someone could point me in the right direction.

I have an image within a block:



        [Display(Name = "Background", Description = "The background image")]

        public virtual ContentReference BackgroundImage { get; set; }

Then I reference the image in my view:

When in editor mode, the image does not show. However, when selecting “Visit on webpage” the image loads fine.

The correct URL seems to be:


But the editor mode it is:


Any help would be much appreciated.

Many thanks,


Jan 08, 2015 19:15

I believe this issue was resolved in a later version of 7.5. I'm not sure which update fixed this, but I recall this issue was fixed in an update a few months back. So updating to latest should resolve this - unless, of course, you're already on latest :).

Jan 09, 2015 0:24

Thanks for your reply Richly.

Unfortunately, updating to the latest versions has made no difference.

Jan 09, 2015 11:58

You can render the image like this:

UrlResolver.Current.GetUrl(SomeContentReference, null, new VirtualPathArguments() { ContextMode = ContextMode.Default });

This will force the same behavior in edit mode as in view mode

Jan 09, 2015 15:02

Perfect! Many thanks Per.

Jan 09, 2015 15:27
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.