Products and Services
Graffiti CMS
Learn more about our simple content publishing platform.
Harvest Reporting Server
Get business intelligence tools for measuring online behavior.
Professional Services
Consulting, creative, and Web services from the people who know Community Server best.
Solutions
Telligent
Learn more about our team at Telligent.com.
 

Adding a Content Part to a Page

You can use content parts to edit a portion of a site theme with a custom message, link list, or other less dynamic content.

To add a Content Part to an existing theme, use the <CSControl:ContentPart /> control. You can place  <CSControl:ContentPart /> controls in any theme page. 

The following example defines an editable area, which is a content part, with the name site-welcome and default content Please edit…

<CSControl:ContentPart ContentName="site-welcome" ContentCssClass="CommonContentPartBorderOff" ContentHoverCssClass="CommonContentPartBorderOn" runat="server">
    <DefaultContentTemplate>
        Please edit...
    </DefaultContentTemplate>
</CSControl:ContentPart>

You should set the ContentName property of the <CSControl:ContentPart /> control to the unique name of this content.  The same content will be edited and displayed anywhere in the site that a content part is shown with this name.

Community Server renders the markup defined by <DefaultContentTemplate> of the <CSControl:ContentPart /> control until you edit the content part.

The system administrator can double-click the content of each Content Part when it appears on a Web page to edit it.