Changeset 464

Show
Ignore:
Timestamp:
04/01/06 21:46:01
Author:
miyagawa
Message:

Added store_html_on_failure option

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Filter/EntryFullText.pm

    r463 r464  
    8888    } 
    8989 
     90    # failed to extract: store whole HTML if the config is on 
     91    if ($self->conf->{store_html_on_failure}) { 
     92        $args->{entry}->body($args->{content}); 
     93        return 1; 
     94    } 
     95 
    9096    $context->log(warn => "Extract content failed on " . $args->{entry}->permalink); 
    9197} 
     
    136142C<.pl> files under assets plugin directory. 
    137143 
     144=head1 CONFIG 
     145 
     146=over 4 
     147 
     148=item store_html_on_failure 
     149 
     150Even if fulltext handlers fail to extract content body from HTML, this 
     151option enables to store the whole document HTML as entry body. It will 
     152be useful to use with search engines like Gmail and Search:: plugins. 
     153Defaults to 0. 
     154 
     155=back 
     156 
    138157=head1 WRITING CUSTOM FULLTEXT HANDLER 
    139158