by
Dave Burke
19. July 2010 19:26
The Sueetie Content Part Control has been rewritten from the ground up and will be part of the Sueetie Version 1.4 release planned for October. There’s been some discussion about CMS functionality in the Sueetie Forums lately and I knew that the first step in creating some sort of CMS in Sueetie was to build a more robust Content Part Control for inline page editing.
The Sueetie Content Part Control was one of the first Sueetie controls. It was all client-side, based on the NicEdit javascript editor and worked fine. The thing is, I never liked it much. I’m a TinyMCE guy and missed using the more beefy editor, so now I’m happy with a TinyMCE-based Content Part Control.
Here are screenshots of the old and the new. First is the original NicEdit-based Content Part in WYSIWYG and HTML format.


Next is the new Content Part using TinyMCE. As previously, all windows are draggable with my favorite feature being one-click fullscreen display of both the WYSIWYG and HTML windows.


Initializing the editor window will work a little differently in the new control. Instead of mousing-over the content area and double-clicking, an icon will display for users with permission to edit the content.

By default, users in the ContentAdministrator group have the ability to edit content. This can be overridden with a new "Roles" property. In the following, members of the ContentAdministrator group as well as ShopManagers and ProductManagers will see "the pencil." The pencil icon is customizable, as is its location.
<SUEETIE:ContentPart ID="ContentPart2" runat="server" ContentID="HomeContent"
Roles="ShopManagers,ProductManagers" />
The Centralized Administration Content Part Editing function is still available and will continue to use NicEdit. The "Users" tab per content item specifying who can edit it along with its permissions logic has been removed in exchange for the simpler "Roles" assignment logic.

Additional information about the new Content Control is available in the Sueetie Wiki Patterns and Origins area.
Dave is the founder of Sueetie and its Head Ice Cream Scooper. Dave has
been building online applications since 1994 when he installed his first
web server while an Assistant Professor at East Carolina University. He left Academia
in 1995 to focus in online development for business where he worked with both publicly
and privately held companies. Dave lives in Burlington, Vermont where he has worked
out of his home office as a freelance developer and online community consultant since 2000. Reach him at
daveburke@dbvt.com. You can visit his website at dbvt.com.
You can also follow
Dave on Twitter.