I think there may be a gap in my understanding of webparts.
Here is the scenario: there are two sites, "PortalSite" (uses Portal templates) and ("AspxSite" uses ASPX) templates. The basic BizForm webpart has been cloned to add custom functionality. An instance of this CustomBizForm has been initialized on the "PortalSite" and several alternate layouts have been created. These alternate layouts are displaying properly on "PortalSite" templates. For reference:
Sites:
- "PortalSite"
- "AspxSite"
Custom WebParts:
- "CustomBizForm" ("~/CMSWebParts/ClientFolder/BizForm.ascx"; registered in Kentico installation as a WebPart)
WebPart Instances:
- "CustomBizFormInstance" (setup on "PortalSite")
I want to display this CustomBizForm on the "AspxSite". As I understand it, the following code should work
..
<%@ Register Assembly="CMS.PortalControls" Namespace="CMS.PortalControls" TagPrefix="cc2" %>
<%@ Register Assembly="CMS.Controls" Namespace="CMS.Controls" TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/ClientFolder/BizForm.ascx" TagName="CustomBizFormWebPart" TagPrefix="uc1" %>
..
<uc1:CustomBizFormWebPart ID="CustomBizFormID"
AlternativeFormFullName="CustomBizForm.CustomBizFormInstance.CustomBizFormInstanceAlternate"
UseColonBehindLabel="false"
runat="server"
FormName="CustomBizFormInstance"
SiteName="PortalSite"
Visible="true" />
..
The page renders without exception, but the CustomBizForm is not displayed (just an empty HTML tag representing the control). I also tried the following using Kentico's default BizForm webpart:
..
<%@ Register Assembly="CMS.PortalControls" Namespace="CMS.PortalControls" TagPrefix="cc2" %>
<%@ Register Assembly="CMS.Controls" Namespace="CMS.Controls" TagPrefix="cms" %>
<%@ Register Src="~/CMSWebParts/bizforms/bizform.ascx" TagName="BizFormWebPart" TagPrefix="uc1" %>
..
<uc1:BizFormWebPart ID="CustomBizFormID"
AlternativeFormFullName="BizForm.CustomBizFormInstance.CustomBizFormInstanceAlternate"
UseColonBehindLabel="false"
runat="server"
FormName="CustomBizFormInstance"
SiteName="PortalSite"
Visible="true" />
..
Same Result. The following allows the BizForm to render on the page, but does not include the custom functionality (it uses the <cms:BizForm/> tag).
..
<%@ Register Assembly="CMS.PortalControls" Namespace="CMS.PortalControls" TagPrefix="cc2" %>
<%@ Register Assembly="CMS.Controls" Namespace="CMS.Controls" TagPrefix="cms" %>
..
<cms:BizForm ID="CustomBizFormID"
AlternativeFormFullName="BizForm.CustomBizFormInstance.CustomBizFormInstanceAlternate"
UseColonBehindLabel="false"
runat="server"
FormName="CustomBizFormInstance"
SiteName="PortalSite"
Visible="true" />
..
What am I missing?