Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Web Parts View modes: 
User avatar
Member
Member
gary.marsh-apptix - 11/11/2011 2:33:47 PM
   
Web Parts
I am trying to add a Web Part, but I am unsure how. I see the different Web Parts that I can chose from, but I am unsure as to how to add it, and utilize in the CMS.

Thanks!
Gary

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 11/11/2011 2:46:00 PM
   
RE:Web Parts
Hello,

It depends on the development model you are using. If you are using the portal engine (you have a Design tab available in the CMSDesk), then you need to switch to the Design tab and by clicking the green plus sign ('+') a dialog with all the web parts should appear.
If you are using the ASPX model (there is no Design tab) then you need to add a web part in the following way into your aspx page:

<%@ Register Src="~/CMSWebParts/Text/staticHTML.ascx" TagName="statichtml" TagPrefix="uc1" %>

<uc1:statichtml ID="StaticHTML1" runat="server" Text="<strong>This text is displayed using Static HTML webpart</strong>" EnableViewState="false" />

The second approach is usually used by people which have some programming experience.


Best regards,
Boris Pocatko