Changeset 7106


Ignore:
Timestamp:
2004-03-22T15:36:15+12:00 (20 years ago)
Author:
kjdon
Message:

modified the comments at the top, made the size args have ranges > 0

File:
1 edited

Legend:

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

    r6860 r7106  
    5959#
    6060# To display the images instead of the document text, you can use [srcicon]
    61 # (the original image) or [screenicon] (the smaller image) in a format
    62 # statement. Her is one that switches between the two:
     61# in the DocumentText format statement.
     62# For example,
     63#
     64# format DocumentText "<center><table width=_pagewidth_><tr><td>[srcicon]</td></tr></table></center>"
     65
     66# If you have used -screenview, you can also use [screenicon] in the format
     67# statement to display the smaller image.  Here is an example  that switches
     68# between the two:
    6369#
    6470# format DocumentText "<center><table width=_pagewidth_><tr><td>_If_('_cgiargp_' eq 'full',<a href='_httpdocument_&d=_cgiargd_&p=small'>Switch to small version.</a>,<a href='_httpdocument_&d=_cgiargd_&p=full'>Switch to fullsize version</a>)</td></tr><tr><td>_If_('_cgiargp_' eq 'full',<a href='_httpdocument_&d=_cgiargd_&p=small' title='Switch to small version'>[srcicon]</a>,<a href='_httpdocument_&d=_cgiargd_&p=full' title="Switch to fullsize version'>[screenicon]</a></td></tr></table></center>"
     
    105111    'type' => "int",
    106112    'deft' => "100",
     113    'range' => "1,",
    107114    'reqd' => "no" },
    108115      { 'name' => "thumbnailtype",
     
    115122    'type' => "flag",
    116123    'reqd' => "no" },
    117      { 'name' => "screenviewsize",
     124      { 'name' => "screenviewsize",
    118125    'desc' => "{PagedImgPlug.screenviewsize}",
    119126    'type' => "int",
    120     'deft' => "500",
     127        'deft' => "500",
     128        'range' => "1,",
    121129    'reqd' => "no" },
    122130      { 'name' => "screenviewtype",
     
    134142    'type' => "int",
    135143    'deft' => "100",
     144    'range' => "1,",
    136145    'reqd' => "no" },
    137146      { 'name' => "noheaderpage",
     
    595604    }
    596605   
     606    close ITEMFILE;
     607
    597608    $file =~ s/\.item//i;
    598609    #use the name of the .item file as the OID
Note: See TracChangeset for help on using the changeset viewer.