Duplicating Custom Page Styling in ScrewTurn Wiki Namespaces

One of the great features in ScrewTurn Wiki is namespaces, distinct wiki areas supporting namespace-specific permissions and administration, theming, page layouts and more.  ScrewTurn Wiki namespaces are fully supported with Sueetie, but the Sueetie Activity Log wasn’t correctly recording non-root wiki page permalinks. A small bug to be sure, but the fix gave me the chance to work with ScrewTurn Wiki Namespaces.

Creating a ScrewTurn Namespace is a snap.  I was into my new namespace in a few seconds, which is when I saw that some of the page elements like the navigation menu, header and footer didn’t look exactly as they did on the root namespace.  I’ll tell you why and give you the fix in a bit, but let’s start with creating a namespace called "Sueetie Insiders" in ScrewTurn Wiki Administration.  As you can see, all themes, both ScrewTurn and Sueetie, are available for selection when creating the namespace.  We’ll choose the Sueetie Peppermint Theme.

Like I said, the new namespace is created in a snap and now we’re looking at our new wiki namespace area.  But things don’t look just right. The first image is the Sueetie Insiders namespace Main Page, the second image is the root Main Page.

The issue is that I customized the navigation menu and other page elements.  These elements are stored in the /wiki/public/*.cs files. When a new namespace is created, ScrewTurn generates namespace-specific files from source code templates.  Here’s a display of our new SueetieInsider page element files.

The tip I’m providing you with today is that you’ll probably want to update these files to duplicate your custom root namespace page element files. I circled file sizes at right to demonstrate that only 4 files will require any touch-up.  The entire process takes a couple of minutes, but afterward your custom page stylings are in perfect harmony as you can see below.

Article written by

A long time developer, I was an early adopter of Linux in the mid-90's for a few years until I entered corporate environments and worked with Microsoft technologies like ASP, then .NET. In 2008 I released Sueetie, an Online Community Platform built in .NET. In late 2012 I returned to my Linux roots and locked in on Java development. Much of my work is available on GitHub.