[pmwiki-users] Question about Skin versioning
H. Fox
haganfox at users.sourceforge.net
Fri Jun 30 15:06:45 CDT 2006
On 6/30/06, Kathryn Andersen <kat_lists at katspace.homelinux.org> wrote:
> I've been working on my own Skin (used on the Wiki part of my site)
> and I was thinking of adding it to the Skins section on the PmWiki
> Cookbook (after a bit more polishing). However, I've noticed that in
> the Cookbook and Skins areas, some people put versions on their uploaded
> files, and some don't. So I'm wondering whether I should or not.
>
> The advantage of putting versions on the archive files themselves is, of
> course, that you know what version one is talking about.
> The disadvantage, I assume, is the nature of Attach: in PmWiki, in that
> you can upload files but if you want to replace them, you need to have
> the same name, and you can't delete uploaded files. (Unless you're the
> administrator). And people might not want to clutter up the space with
> old files.
>
> So, what should I do?
Regardless of how you decide to name the files, consider adding the
skin's name and version as page variables in the skin.php script:
## Add {$SkinName} and {$SkinVersion} page variables.
$FmtPV['$SkinName'] = "'FooSkin'";
$FmtPV['$SkinVersion'] = "'0.01.0'";
Hagan
More information about the pmwiki-users
mailing list