Item15052: Support a cover plus skin as the publishskin

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches:
Reported By: BramVanOosterhout
Waiting For:
Last Change By: BramVanOosterhout
-- BramVanOosterhout - 20 Nov 2021

Pushed to github. Package to be released 14 Dec 2021.

The publishskin parameter insists on a single value. covers that modify a skin (for instance mycover,pattern are rejected.

Publisher.pm line 77-81
   publishskin => {
        default   => 'basic_publish',
        validator => \&validateWord,
        desc      => 'Publish Skin'
    },

Foswiki::Func::readTemplate supports a comma separated list for the skin parameter, so the logic in Publisher.pm line 544-546 would support multiple values.
    $this->{skin_template} =
      Foswiki::Func::readTemplate( $this->{opt}->{template},
        $this->{opt}->{publishskin} );

I am changing line 77-81 to:
 publishskin => {
        default   => 'basic_publish',
        validator => sub {
                validateList( @_, \&validateWord );
                },
        desc      => 'Publish Skin'
    },

to support the use of a cover over an existing skin as the publishskin.

 

ItemTemplate edit

Summary Support a cover plus skin as the publishskin
ReportedBy BramVanOosterhout
Codebase 2.1.6
SVN Range
AppliesTo Extension
Component PublishPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r3 - 19 Dec 2021, BramVanOosterhout
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy