The Editable image web part does not work inside another web part

HelenaG Grulichova asked on March 21, 2012 10:28

The Editable image web part does not work inside another web part

Correct Answer

HelenaG Grulichova answered on March 21, 2012 10:28

The Editable image web part is not designed to be used inside another web part. You can separate the web parts; use the original Editable image web part and the rest of code in a custom web part.

If you need to use the Editable image inside your custom web part, the parent web part must:
  1. inherit from the CMSAbstractEditableWebPart class and
  2. implement the LoadContent and GetContent methods.

You can take inspiration from the Editable image web part:

~/CMSWebParts/Text/editableimage.ascx.cs

 
-hg-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.