More on Custom Page Styling in ScrewTurn Wiki

In our last episode we walked through the process of creating Namespaces in ScrewTurn Wiki, selected a theme and as a bonus, demonstrated how to fine-tune page elements to duplicate the page styles across all ScrewTurn namespaces. Today we’re going to replace the fine-tuning process of editing ScrewTurn /wiki/public/*.cs content files with the Content Editing feature already built-in to ScrewTurn Wiki.

This post is yet another demonstration of why blogging is important to get things right. As has happened to me before over the last 6 years of blogging, I write about an application or process and someone shows me how we can do it better. In this case, The Man Himself and author of ScrewTurn Wiki, Dario Solera, filled me in on the Content Editing Administration feature which automates the page element duplication process I described doing in NotePad. Thanks, Dario!

If you may recall, below are the page element files created in the ScrewTurn public directory, at which point I previously advocated manually editing them to duplicate the root namespace elements. 

Skip ahead to Present Day and ScrewTurn Wiki Administration where we see the Content Editing tab, which will automate the page element update process for us. We want the page elements of our new "Sueetie Insiders" namespace to duplicate the style of those in the root namespace, so we select our SueetieInsider namespace as shown below and click on any of the many available page elements to update.

Now we select a namespace to copy from the root namespace and we’re done. But before we finish the job we want to take a look at the new namespace page element markup for namespace-specific links and other useful namespace elements.  In this case we see in lines 2 and 3 that the main navigation link returns us to the Namespace Main Page as it should, but there’s also a helpful [++MainPage|Main Page (root)] link.  We want to keep that, so we’ll paste that in to the copied root element content markup before moving on.

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.