Welcome Guest, you are in: Namespace

This page discusses how site settings are stored and managed in Sueetie.

Sueetie Site Settings: Patterns

The architecture of Sueetie Site Settings is pretty straightforward: property names and their corresponding values. The pattern was largely based on BlogEngine.NET's smart and simple approach to storing application settings as we'll see in Origins below. The best way to demonstrate the use of Sueetie SiteSettings is how it's used on the Administrative General Site Settings page.

Image

On the back end we're retrieving the properties with SiteSettings.Instance.[propertyname].

Image

Unlike BlogEngine.NET's handling of blog application settings where all properties are rewritten to file storage or sql, Sueetie updates properties individually.

Image

There's also a cache clearing method we want to use whenever we update the site settings object.

SueetieCommon.ClearSiteSettingsCache();

Sueetie Site Settings: Origins

As we know, the Sueetie Site Settings model was based on BlogEngine.NET's BlogSettings object, instantiated with a Get() / Instance property.

Image

Like BlogEngine.NET, Sueetie Site Settings are loaded from a StringDictionary collection, with each dictionary key compared with the PropertyInfo elements of the SiteSetting properties: SiteName, ContactEmail, RegistrationType and so on.

Image

Below is a screenshot of how properties are stored in SQL Server

Image

Top

ScrewTurn Wiki version 3.0.4.560.

Get in Touch

Dave Burke

Don't hesitate to contact Dave Burke with any questions about Sueetie or to consult with you about Sueetie Custom Community Development.

phone: (802) 343-1111
Copyright © 2008-2011 Sueetie LLC. All rights reserved.