Creating web part containers

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Here's an example of defining a new web part container:

 

1. Go to Site Manager -> Development -> Web part containers.
 

2. Click NewContainer New container.
 

3. Enter the following values:

 

Display name: Blue box
Code name: BlueBox
Text before web part:

 

<table width="100%" style="border: 1px solid #4a62e4;" cellpadding="5" cellspacing="0">

<tr valign="top">

<td style="background-color:#4a62e4;font-weight:bold;color:white">

{%ContainerTitle%}

</td>

</tr>

<tr valign="top">

<td>

 

Text after web part:

         

</td>

</tr>

</table>

 

4. Click OK to save.
 

5. Switch to the Sites tab and click the Add sites button to assign the new container to the website where you wish to use it.

 

6. Go to CMS Desk and display some page on the Design tab. Configure (Configure) some web part and set its properties like this:

 

Use container: Blue box
Container title: My web part with container
 

7. View the page in Live site mode. The web part will be surrounded by a blue border and it will have the specified title.

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?creating_web_part_containers.htm