Item12895: cover=print and skin=print,pattern should give identical results.
Priority: Normal
Current State: Closed
Released In: 1.2.0
Target Release: n/a
Applies To: Engine
Component: FoswikiSkin
Branches: trunk
When viewing with the "cover=" parameter, the page is fully left justified, with no border box around the page. When viewed with the prepended print skin, on 1.1.9 the page has a border with shading. On trunk, the footer is shaded, and in both the text is offset from the left.
On 1.0.x, the results are identical.
The only difference in the generated HTML that I can find other than timestamps is the following:
Trunk:
cover=print
<link rel='stylesheet' href='/pub/System/PatternSkin/print.css' media='all' type='text/css' />
skin=print,pattern
<link rel='stylesheet' href='/pub/System/PatternSkin/print.css' media='print' type='text/css' />
Release 1.1.9:
cover=print
<style type="text/css" media="all">
@import url("/pub/System/PatternSkin/print.css");
skin=print,pattern
<style type="text/css" media="print">
@import url("/pub/System/PatternSkin/print.css");
The cause is due to templates setting the media type based upon the
%URLPARAM{"cover"}%
which is not set when using the skin prepend.
I don't believe that this is a bug. Resolved by a documentation update explaining the hard-coded media type settings.
--
GeorgeClark - 09 May 2014