Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Novice Web Control Question View modes: 
User avatar
Member
Member
robert-tailor.co - 8/6/2012 6:31:03 PM
   
Novice Web Control Question
Hi,

I'm developing my website using the ASPX development method.

If I use the portal engine, I can include a "News List" web control. So (presumably) that web control exists as an ASCX file somewhere.

1. Where can I find that web control, so I can drop it into one of my ASPX pages in the ASPX development model?
2. How can I find the ASCX source file for each web control?

Thanks for any help you can offer!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/7/2012 12:26:05 AM
   
RE:Novice Web Control Question
Hi,

I would recommend to use it as a "web part". In this case, the news list web part in portal engine is just inherited from the repeater web part/control and named "News list".

So, in the ASPX templates you can use CMSRepeater control and just configure it to list the news.

You can find the web part's code in CMSWebParts folder. these code files are also used by the portal engine web parts. Some of the web parts are using/based on some server controls. These controls are usually in CMS.Controls assembly. you can add these controls to the Visual studio toolbox.

Best regards,
Juraj Ondrus

User avatar
Member
Member
robert-tailor.co - 8/7/2012 12:32:08 AM
   
RE:Novice Web Control Question
kentico_jurajo wrote: You can find the web part's code in CMSWebParts folder. these code files are also used by the portal engine web parts. Some of the web parts are using/based on some server controls. These controls are usually in CMS.Controls assembly. you can add these controls to the Visual studio toolbox.

Best regards,
Juraj Ondrus

Hi Juraj,

Thanks for your response.

I'm looking in the CMSWebParts folder in Visual Studio and cannot see the News List Web Part. Where specifically is that web part located? Can you give me the file path?

And how can I find the location of the web part source files in Visual Studio for any of the web parts used in Kentico?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/7/2012 12:37:59 AM
   
RE:Novice Web Control Question
Hi,

I already mentioned it: "In this case, the news list web part in portal engine is just inherited from the repeater web part/control and named "News list"."

In portal engine are many web parts based on some others or inherited and just pre-configured for given purpose - exactly like the News list. It is just pre-configured repeater.
You can go to Site Manager -> Development -> Web parts, find your web part and check its source file.

Best regards,
Juraj Ondrus

User avatar
Member
Member
robert-tailor.co - 8/7/2012 12:41:43 AM
   
RE:Novice Web Control Question
Ah - I get it now!

:-)

Thanks Juraj!