Changeset 8246


Ignore:
Timestamp:
2004-10-08T14:04:25+13:00 (20 years ago)
Author:
kjdon
Message:

changed the default to have noheaderpage, so the option is now -headerpage, which adds one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/PagedImgPlug.pm

    r8245 r8246  
    158158    'range' => "1,",
    159159    'reqd' => "no" },
    160       { 'name' => "noheaderpage",
    161     'desc' => "{PagedImgPlug.noheaderpage}",
     160      { 'name' => "headerpage",
     161    'desc' => "{PagedImgPlug.headerpage}",
    162162    'type' => "flag",
    163163    'reqd' => "no" },
     
    195195             q^thumbnail^, \$self->{'thumbnail'},
    196196             q^screenview^, \$self->{'screenview'},
    197              q^noheaderpage^, \$self->{'noheaderpage'},
     197             q^headerpage^, \$self->{'headerpage'},
    198198             'documenttype/^(paged|hierarchy)$/paged', \$self->{'doctype'},
    199199             "allow_extra_options")) {
     
    591591        my $cursection;
    592592        if ($first) {
    593         if ( $self->{'noheaderpage'}) {
     593        if ( $self->{'headerpage'}) {
     594            $cursection = $doc_obj->insert_section($doc_obj->get_end_child($topsection));
     595        } else {
    594596            $cursection = $topsection;
    595         } else {
    596             $cursection = $doc_obj->insert_section($doc_obj->get_end_child($topsection));
    597597        }
    598598        $first=0;
Note: See TracChangeset for help on using the changeset viewer.