Hi,

parsing del.icio.us feeds I ran into the problem that all tags in delicious (separated by spaces) are interpreted as one category by Drupal (yeah, since the separator here is a ","). Where would I need to tweak the module to get separate categories for each tag?

Cheers
Markus

Comments

markusH’s picture

Found the place. In simplefeed_item.module replace the lines

          // add any tags (either inheriting from parent feed or from parsing the feed item) to the feed item node
          if ($tags != '') {
            $item->taxonomy['tags'][$process_feed->vocab] = decode_entities($tags);
          }

with

          // add any tags (either inheriting from parent feed or from parsing the feed item) to the feed item node
          if ($tags != '') {
            $tags = str_replace(" ", ",", $tags);
            $item->taxonomy['tags'][$process_feed->vocab] = decode_entities($tags);
          }

This simply replaces all spaces from with commas. Now all del.icio.us categoies get imported correctly.

We adopeted the del.icio.us category naming conventions for Drupal as well. So this does the job for us. However, if you are trying to import categories from other sources than del.icio.us you might want to put some logic depending on the source.

markusH’s picture

Assigned: Unassigned » markusH
Status: Active » Closed (fixed)