Arnold Zokas
Arnold Zokas

Reputation: 8560

How to override Image.BrowseImage() in Sitecore

I am looking for a way to override the behaviour of BrowseImage(ClientPipelineArgs args) method in Sitecore.Shell.Applications.ContentEditor.Image class (Sitecore 6).

This blog post (Integrate an external media library into Sitecore – Part 2) confirms it is possible.

I have created a custom implementation of Image class, but can't find where to register it. I did a search on all Sitecore config file in the solution but could not find any references.

I suspect there is a configuration option somewhere in the Core database.
Any ideas on where I might find this?

Edit: Posted this on Sitecore support.

Upvotes: 2

Views: 458

Answers (2)

Arnold Zokas
Arnold Zokas

Reputation: 8560

Found a solution.
The issue was I set Assembly and Class field values, but did not clear Control field value.

Correct configuration below:

enter image description here

Upvotes: 0

GrandPaPete
GrandPaPete

Reputation: 127

You should be able to add a reference to your new type in the following sitecore location:

/sitecore/system/Field types/Simple Types/Image

enter image description here

You can register your type in the normal way specifying your assembly and class names.

Upvotes: 1

Related Questions