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):
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?
- 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.
- 23 Jul 2013
Reasonable. This has all been reworked in the latest release of the plugin, so suggest you upgrade.
- 07 May 2017 - 09:14
| Subject || Using an extension |
| Extension || PublishPlugin |
| Version || Foswiki 1.1.5 |
| Status || Answered |
| Related Topics || |