New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

PublishPluginL published web has no style (Windows)

I am using the PublishPlugin in version 1.1.5 (Foswiki on a stick under Windows 7). I publish a zipped web, which I can navigate when unzipped.

Stylesheets are appropriately published and exist in the right place. But the styles are not applied.

On investigation I found that the web pages are published with (for example):
@import url('..\..\rsrc\System\SkinTemplates\base.css');

A global change from \ to / in the file solved the problem.

If I understand the writings on the web, then the \ is not legal in a uri.

I am aware of the \ vs / issues when using Windows and the complications this brings. And the translation may be part of a standard setting. But I cannot locate a switch that I can set to either:
  • make my browser recognise the \ in the import uri. Or
  • have PublishPlugin create the html with / instead of
Is there a way?

-- BramVanOosterhout - 19 Jul 2013

On investigation I suspect this is caused by the use of cpan File:: . File::Spec indicates that it will implement in accordance to the OS the operation is performed on. That is really nice when we are dealing with file input and output. But for uris we are better of using cpan URI::

Is this a reasonable diagnosis?

For the time being I have created a post processor that does the backslash to forward slash translation.

-- BramVanOosterhout - 23 Jul 2013

Reasonable. This has all been reworked in the latest release of the plugin, so suggest you upgrade.

-- Main.CrawfordCurrie - 07 May 2017 - 09:14

QuestionForm edit

Subject Using an extension
Extension PublishPlugin
Version Foswiki 1.1.5
Status Answered
Related Topics
Topic revision: r3 - 07 May 2017, CrawfordCurrie - This page was cached on 11 Mar 2018 - 11:02.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License