SpaceJump
SpaceJump

Reputation: 483

Umbraco 7.6: Displaying a media picker image in a web form

I'm trying to display a media picker image in a web form by using

<umbraco:Image field="blockImage" runat="server" />

in the .ascx, but that only generates

umb://media/2e77abe99a4d4985af044866ba00ae93.

I did something extensive Google searching, but found nothing else. This is supposed to work as far as I understand.

So how can I display a media picker image in a web form?

Upvotes: 0

Views: 330

Answers (1)

harvzor
harvzor

Reputation: 2908

I have serious doubts that the new API which is being used for this works with masterpages.

The format of umb://media/2e77abe99a4d4985af044866ba00ae93 appears when using Media Picker 2 in Umbraco. The original Media Picker has been made obsolete as this new format has some benefits.

Media Picker 2 is the default in newer version of Umbraco (7.6+ I think).

You should change the media picker you're using to use the old one, and it should start working:

enter image description here

Alternatively, switch to CSHTML.

Upvotes: 1

Related Questions