kentico_jurajo
-
10/22/2008 8:55:18 AM
RE:Implementation of CMSEditableImage LoadContent broken
Hi,
At first, the selected image have to be published as well.
The parent document have to be published also since if something is not published, that means it should not be visible on the live site - so also on the child node it cannot be displayed.
Also, I assume that you are using ASPX templates. In this case the inheritance is little bit more complicated and is working different.
If you are using the same template for all three documents (e.g. the template is inherited), please enter to the code behind of this template this code:
protected override void OnPreRender(EventArgs e) { base.OnPreRender(e); <editableImage_ID>.LoadContent(CMS.PortalEngine.PageInfoProvider.GetPageInfo(CMS.CMSHelper.CMSContext.CurrentSiteName, "<alias path to the parent>", "en-us", null, true, CMS.DataEngine.ConnectionHelper.GetConnection())); }
If these documents have different page templates, you need to place this code to the code behind of these templates and also you need to place an EditableImage control with the same ID as the parent control.
Best Regards, Juraj Ondrus
|