Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Adding custom webpart to an ASPX template site View modes: 
User avatar
Member
Member
pdrumgoole-hotmail - 7/26/2011 2:41:20 PM
   
Adding custom webpart to an ASPX template site
Is it possible for a developer to add a custom webpart to a page on an ASPX template site, so that the editor may set the properties of it in CMS Desk? I have done this in a portal site, but in the ASPX template site I don't have a design tab in CMS Desk, so I'm not sure how to do it.

Thanks.

User avatar
Member
Member
kentico_edwardh - 7/26/2011 4:29:53 PM
   
RE:Adding custom webpart to an ASPX template site
Hello,

In general, you need only to register the appropriate web part (control) on your .aspx page and then you can use it. Using the Google maps web part as an example, you can register the Google maps web part on your .aspx page like this:

<%@ Register src="../../CMSWebParts/GoogleServices/GoogleMaps.ascx" tagname="GoogleMaps" tagprefix="uc2" %>

And then use like this:
<uc2:GoogleMaps ID="GoogleMaps1" runat="server" />


Best Regards,
Edward Hillard