I want to give a custom image field's property dialog a class dropdown. Currently I have a custom image field which points to a custom image control.
That control overrides Sitecore.Shell.Applications.ContentEditor.Image
's ShowProperties method. The only line that I have really changed in that method is the line that has a namespace reference.
I have overriden it to point to a custom class that inherits from Sitecore.Shell.Applications.Media.ImageProperties.ImagePropertiesPage
.
I'm getting the following error indicating that my class cannot be found:
Xaml control "MyNamespace.CustomSitecore.Shell.Applications.Media.BrandedImageProperties.BrandedImagePropertiesPage, MyNamespace.Common" not found. The last error was: [No error]
The line I have changed is as follows:
UrlString urlString = new UrlString(FileUtil.MakePath("/sitecore/shell",
ControlManager.GetControlUrl(
new ControlName(
"MyNamespace.CustomSitecore.Shell.Applications.Media.BrandedImageProperties.BrandedImagePropertiesPage"))
)
);
I'm assuming that's because it looks in Sitecore.Client. Is there any way to change this so it will look through a dll I specify? Is this even the right way to do something like this (override 1 dialog on a field by creating a completely new field)?
sitecore/shell
folder. If you place your control within thesitecore/shell/application/[custom folder]
, the above code may work – Hishaam Namooya Jul 24 '17 at 20:37