Item10434: Pattern Skin styles:user_defined template not properly included during publish stage
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Pattern Skin provides a means of adding user specified CSS code via the
USERSTYLEURL
,
USERLAYOUTURL
, and
USERCOLORSURL
preference variables.
Unfortunately, during rendering by
PublishPlugin, the block (
styles:user_defined
) which generates the including HTML for the css files isn't being included. It is properly included during normal rendering.
styles:user_defined
is included by the
styles:screen
block. Both are in
templates/css.pattern.tmpl
. The relevant section is at the end of the
styles:screen
definition. It looks like:
%IF{ "$ USERLAYOUTURL or $ USERSTYLEURL or $ USERCOLORSURL" then="$percntTMPL:P{$quotstyles:user_defined$quot}$percnt"}%
I have verified that the
%IF%
macro is being properly evaluated (by simply adding some extra text to be output) and that the
styles:user_defined
block is non-empty (by explicitly including it).
The above code looks perfectly valid and I have similar code elsewhere which does essentially the same thing, and it works. I'm stumped on this one.
I believe this should work now. Not seen OP for long time so closing this, will be re-opened if necessary.
--
Main.CrawfordCurrie - 23 Apr 2017 - 14:07