On Fri, 23 Mar 2001, Adam C. Engst wrote:
> Hey folks,
>
> Is there a way (new XML file or something) to create a new set of
> controls for Swiki (on the Mac)?
In swiki:defaults:files: you'll see a number of folders named after the
"looks" available (e.g., fancy, orange, etc.) (the different looks are
specifiable on the Settings page of the AdminTool swiki). So the simplest
thing that could possible work is to alter the various .gifs in one of
these, and assign that "look" to your swiki.
> I find that I like the left-side approach, but the size is too small,
> so I'd like to fiddle with that.
Right now, I think the above method is easiest. I haven't delved much in
this area, so I'm not sure if just creating a new folder will get you a
new look in the admintool. Whatever needs doing for that should be easy
enough to do later.
> Plus, I could see it being nice to
> brand an Swiki with some header graphics on each page or something
> like that.
I recommend trying some of the other looks. As a minimalist, I'm more fond
of the simpler ones.
Changing the templates will allow you do add the header graphics and
otherwise munge the layout.
At the moment this is a skill, manual, and somewhat tedious task. I
believe that Je77 is working on an editor for the final release that
should make it much more straightforward.
Of course, just adding a header shouldn't be so hard. The templates are
very similar to ASP or JSP pages, e.g.,:
<?doctype?>
<html>
<head>
<title>Progression of <?filename?></title>
<?endhead?></head>
<body<?colorscheme?>>
<?beforebuttons?><?showbuttons?><?afterbuttons?>
<h2>Progression of <?filename?></h2>
<?fileshowversions?><?endbody?></body>
</html>
Aha, ok. Notice the items enclosed in <??>s? Those are "actions". There's
a directory in each swiki call "actions" where the bits of code that get
expanded inline are held. So, for example, the contents of the
doctype.book file contains:
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Tansitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">'
Which is what will replace <?doctype?> in the above template.
That's the basic idea. Alas, the organization of the actions is not yet
reasonable documented. I'm hoping that the editor will make them easier to
inspect, change, and otherwise manipulate.
Cheers,
Bijan Parsia.