Changeset 86120 in spip-zone for _plugins_/fulltext


Ignore:
Timestamp:
Nov 17, 2014, 9:42:23 AM (6 years ago)
Author:
kent1@…
Message:

Passer par declarer_tables_objets_sql et ajouter le champ "contenu" des documents dans les extraits de recherche

Location:
_plugins_/fulltext/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/fulltext/trunk/base/fulltext.php

    r56830 r86120  
    55if (!defined("_ECRIRE_INC_VERSION")) return;
    66
    7 function fulltext_declarer_tables_principales($tables_principales) {
    8         $tables_principales['spip_documents']['field']['contenu'] = "TEXT DEFAULT '' NOT NULL";
    9         $tables_principales['spip_documents']['field']['extrait'] = "VARCHAR(3) NOT NULL default 'non'";
     7function fulltext_declarer_tables_objets_sql($tables){
     8        $tables['spip_documents']['field']['contenu'] = "TEXT DEFAULT '' NOT NULL";
     9        $tables['spip_documents']['field']['extrait'] = "VARCHAR(3) NOT NULL default 'non'";
     10        $tables['spip_documents']['rechercher_champs']['contenu'] = 1;
    1011
    11         return $tables_principales;
     12        return $tables;
    1213}
    1314
  • _plugins_/fulltext/trunk/paquet.xml

    r85861 r86120  
    2222        <traduire module="fulltext" reference="fr" gestionnaire="salvatore" />
    2323
    24         <pipeline nom="declarer_tables_principales" inclure="base/fulltext.php" />
     24        <pipeline nom="declarer_tables_objets_sql" inclure="base/fulltext.php" />
    2525        <pipeline nom="autoriser" inclure="fulltext_autoriser.php" />
    2626        <pipeline nom="taches_generales_cron" inclure="fulltext_pipelines.php" />
Note: See TracChangeset for help on using the changeset viewer.