problem with blog post catagories

rfobart - June 17, 2007 - 04:41
Project:Interlaced
Version:5.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Blog post categories do not appear, instead the word "Array" appears in place of each catagory (if there are 3 categories listed, array appears 3 times).

Using Drupal 5.1 and Interlaced 1.24.

The blog post info should look like this:
Poster | Date-Time | Cat1 | Cat2 | Cat3

Instead it says:
Poster | Date-Time | Array | Array | Array

I imagine this might be a simple code problem. When I switch to another theme the categories display correctly.

Thanks,

Ryan

#1

fernao - October 10, 2007 - 16:27
Status:active» reviewed & tested by the community

I've tested with this patch and it worked, according with taxonomy.module docs.

Save the patch on interlaced folder and apply it:

$ cd /path/to/drupal/themes/interlaced/
$ patch -p0 < interlaced.theme.diff

Interlaced.theme.diff

--- interlaced.theme    2007-10-10 14:29:57.000000000 -0300
+++ interlaced.theme    2007-10-10 14:29:02.000000000 -0300
@@ -206,9 +206,7 @@
     $nodedate[] = format_date($node->created, "small");

     if (module_exists('taxonomy') && ($taxonomy = taxonomy_link('taxonomy terms', $node))) {
-      foreach ($taxonomy as $taxo) {
-        $nodedate[] = $taxo;
-      }
+       $nodedate[] = theme('links', $taxonomy);
     }
   }

AttachmentSize
interlaced.theme_.diff 421 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.