Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/23/2013 01:00:51 PM (10 years ago)
Author:
netweb
Message:

Include support for custom topic tag slugs and descriptions during import. Props netweb. Fixes #2399

  • Support included for bbPress v1.x , Drupal, Example, PHPFox, vBulletin v3.x & v4.x
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/admin/converters/Drupal7.php

    r5170 r5176  
    279279        );
    280280
    281         /* Pending: 'Topic-Tag' Descriptions & Slugs with bbPress Importer
    282         /* Pending: http://bbpress.trac.wordpress.org/ticket/2399
    283 
    284281        // Term slug.
     282        $this->field_map[] = array(
     283            'from_tablename'  => 'taxonomy_term_data',
     284            'from_fieldname'  => 'name',
     285            'join_tablename'  => 'field_data_field_tags',
     286            'join_type'       => 'INNER',
     287            'join_expression' => 'ON field_tags_tid = taxonomy_term_data.tid',
     288            'to_type'         => 'tags',
     289            'to_fieldname'    => 'slug',
     290            'callback_method' => 'callback_slug'
     291        );
     292
     293        // Term description.
    285294        $this->field_map[] = array(
    286295            'from_tablename'  => 'taxonomy_term_data',
     
    290299            'join_expression' => 'ON field_tags_tid = taxonomy_term_data.tid',
    291300            'to_type'         => 'tags',
    292             'to_fieldname'    => 'slug'
    293         );
    294 
    295         // Term description.
    296         $this->field_map[] = array(
    297             'from_tablename'  => 'taxonomy_term_data',
    298             'from_fieldname'  => 'description',
    299             'join_tablename'  => 'field_data_field_tags',
    300             'join_type'       => 'INNER',
    301             'join_expression' => 'ON field_tags_tid = taxonomy_term_data.tid',
    302             'to_type'         => 'tags',
    303301            'to_fieldname'    => 'description'
    304302        );
    305         */
    306303
    307304        /** Reply Section *****************************************************/
Note: See TracChangeset for help on using the changeset viewer.