Dave Burke : Freelance .NET Web Developer specializing in Online Communities

CS Nuglet: CMS-Lite in CS 2.x - The Content Part Control

I've been recently enjoying a few emails on the topic of CMS in Community Server with some new pals of mine from Tim Haines' New Zealand Entourage.  I always enjoy emails when The Hustler's on the distrib list, but particularly so when the topic is Community Server.  Thus the topic of tonight's CS Nuglet is Content Management in Community Server 2.0, focusing on the CS 2.0 Content Part Control.

First (and this is not Telligenti Insider info), CMS support is a significant driver in CS 3.0.  Rob Howard said this in his WallyM podcast from Mix06 with ScottW.  Here's a transcript.  Another point is that Telligent purchased Dozing Dogs last year for their Content Management technology, so CMS is important in Community Server's future.  This CS Forums thread on the topic of Lightweight CMS in CS deals with several related aspects, with a RobH link to the Dozing Dogs acquisition and other related forums threads.

The Lightweight CMS thread began with a request for more information about the Content Part, a new control in CS 2.0 that supports inline editing of content areas.  The Content Part can be added to any CS page literally in seconds, and is used in places for lightweight CMS functionality in places you might not suspect, like this Support page at CS.ORG.  (Click on any screenshot to view full-size.)  In the enlarged version you'll see circled "double-click to edit this content."



We're going to walk through the process of adding a Content Part in Community Server and enjoy CS 2.0 CMS-Lite in action.  I'm going to use the iTunes Library on my development server for the demo.  What we're going to do is replace the top left-hand circled static text block with a Content Part.




The first thing we're going to do is open up the .ASPX or .ASCX (in this case, Skin-iTunesSideBar.ascx) and add the control.  This is the original code.



And below is the ContentPart control, which is like any CS Custom control.  We provide ID and RUNAT properties, along with a CONTENTNAME property.  More on that in a bit.



Now when we return to our page, and if we have sufficient permissions, when we hover over the content part area we'll see a "Double-Click to Edit this Content" prompt.



We double-click and a modal window appears where we edit the content. 



Closing the modal window updates our content part text.



You may be wondering where the data is stored.  Well, here's another slick aspect of the Content Part, the data is stored in the cs_content SQL table, identified by the contentname property we entered earlier.



So you and your Content Managing gaggle, enjoy the CS 2.x Content Part as full CMS capabilities continue to evolve in Community Server.

[tags: Community Server, CSControls]

Comments (6) | Post RSS RSS comment feed

Posted on 5/30/2006 7:23:00 PM by Dave Burke
Categories: Community Server
Tags: no tags for this post

Related posts

Comments (6) -

5/31/2006 4:03:09 AM Permalink

I have been meaning to write an article about this for about a month now.  

I use this method extensivley on both my CS sites (http://-samce.com & http://chrislotter.com)

Nice work!  This will be very useful for the CS community.

Chris Lotter |

5/31/2006 4:37:32 AM Permalink

Chris, thanks a lot!  This is really a simple control to use, I didn't need so many screenshots.  I think I covered everything though.  One aspect I didn't go into more detail was on the permissions required to change the content.  It always "just worked" for me so I never investigated that aspect.  Thanks again for your comments.

daveburke |

5/31/2006 7:23:15 AM Permalink

Great;
It's very useful for many users.

Things aren't up as the past here Wink

Keyvan Nayyeri |

5/31/2006 7:35:18 AM Permalink

Keyvan, are you suggesting my posting volume has gone down????  If so, you're RIGHT!  Smile  I'm still adjusting to the new job, plus the Daily News drains my blogging and writing energy.   I'll try to get back in action.  Thanks for noticing.

daveburke |

6/7/2006 9:01:16 PM Permalink

Thanks for a great post.

OT - can you recommend any good CS implementers/designers - I'm considering moving my blog to my own CS site?

AlexH |

6/7/2006 9:11:00 PM Permalink

Alex, thanks very much for your comment.  The web host ASPnix is all the rage among CS developers these days.  A Telligent MVP named Rick Reszler (The Wizard) is on ASPNix staff (it's his birthday today!) and may provide some guidance for you depending on what you're after.  Here's his cs.org profile page if you want to contact him.  http://communityserver.org/members/The+Wizard.aspx

daveburke |

Pingbacks and trackbacks (1)+


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke