Changeset 633

Show
Ignore:
Timestamp:
05/26/05 21:02:13 (4 years ago)
Author:
earle
Message:

new format=plain option for node index listing

Location:
trunk
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r631 r633  
    1111            applications. 
    1212        Reorder navigation bar to provide more logical groupings. 
     13        Add "format=plain" option for all-nodes index listing and associated 
     14          template plain_index.tt. 
    1315 
    14160.47    15 January 2005 
  • trunk/MANIFEST

    r618 r633  
    4444templates/node_history.tt 
    4545templates/openguides_information_boxes.tt 
     46templates/plain_index.tt 
    4647templates/preferences.tt 
    4748templates/rdf_index.tt 
  • trunk/lib/OpenGuides.pm

    r618 r633  
    485485    my ($template, %conf); 
    486486 
    487     if ( $args{format} and $args{format} eq "rdf" ) { 
     487    if ( $args{format} ) 
     488    { 
     489      if ( $args{format} eq "rdf" ) 
     490      { 
    488491        $template = "rdf_index.tt"; 
    489492        $conf{content_type} = "text/plain"; 
    490     } else { 
    491         $template = "site_index.tt"; 
     493      } 
     494      elsif ( $args{format} eq "plain" ) 
     495      { 
     496        $template = "plain_index.tt"; 
     497        $conf{content_type} = "text/plain"; 
     498      } 
     499    } 
     500    else 
     501    { 
     502      $template = "site_index.tt"; 
    492503    } 
    493504