Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Webpart Properties View modes: 
User avatar
Member
Member
sathish.k-paripoorna - 4/5/2011 2:12:07 AM
   
Webpart Properties
Hello Kentico experts


I am Newbie to Kentico i would like add height ,width properties to my custom webpart so please address me the problem

Thanks
sathish kasinathan

User avatar
Kentico Support
Kentico Support
kentico_radekm - 4/5/2011 5:35:17 AM
   
RE:Webpart Properties
Hello.

I am not familiar with your custom web part and with its content, however on Portal engine page, you can manage it via WebPartZones in page layout and their dimension / positions. I would recommend you to inspect some existing page template (e.g. Home page with top image and three columns) and see, what styles and positioning is used. You can also experience that you can have 1 web part (e.g. standard Repeater), which have dynamic width, according to current WebPartZone (so it fits to width of given WebPartZone).

Of course, you can ensure fix dimension in Visual Studio, in Design mode.

I would recommend you, beside investigation of current page templates and styles on default Corporate site web site, to read following tutorial, where you can see more details: http://devnet.kentico.com/docs/tutorial/index.html

Best Regards,
Radek Macalik

User avatar
Member
Member
sathish.k-paripoorna - 4/6/2011 12:56:58 AM
   
RE:Webpart Properties
Thanks for ur reply....


for example The thing is i create a image webpart , the webpart should be resizable through properties . for eg: i attach the image pls find the attachment


pls click here

User avatar
Kentico Support
Kentico Support
kentico_radekm - 4/7/2011 12:30:48 PM
   
RE:Webpart Properties
Hello.

You can see properties of any web part in Site Manager -> Development -> Web parts -> choose web part -> Properties tab. Anyway, it is not about having properties there only, you need write logic for them and use them properly in code-behind if given web part. Web part files can be found in <project folder>/CMSWebParts directory.

For better understanding please read article about custom web part development here: http://devnet.kentico.com/docs/devguide/developing_web_parts.htm

I am wondering why don´t you use existing Editable image web part, allowing to set dimensions of given image, and it even allowing resizing? Can you clarify? Thank you.

Best Regards,
Radek Macalik