I'm trying to customize my search result page.
To know wich variable i can use I write this:

print '<pre>'. check_plain(print_r($result['node'], 1)) .'</pre>';

and the results are a list of available variables that i can use to display.
Now i have two type of array in my variable...one of this is my problem because i can't stamp the value:

case 1 (no problem)

[field_img_product] => Array
        (
            [0] => Array
                (
                    [fid] => 420
                    [list] => 1
                    [data] => Array
                        (
                            [description] => 
                            [alt] => 
                            [title] => 
                        )

                    [uid] => 1516
                    [filename] => IMGP2875.JPG
                    [filepath] => sites/default/files/product/IMGP2875.JPG
                    [filemime] => image/jpeg
                    [filesize] => 2069256
                    [status] => 1
                    [timestamp] => 1254048387
                    [nid] => 700
                )

        )

In this case for example to stamp the path of the img i use:
$result['node']->field_img_product[0]['filepath']
and i have no problem.

case2 (problem)

[taxonomy] => Array
        (
            [3] => stdClass Object
                (
                    [tid] => 3
                    [vid] => 1
                    [name] => Electronic
                    [description] => 
                    [weight] => 2
                )

        )

How can i stamp the [name] variable in this case?
I tried any solutions like $result['node']->taxonomy....but don't work

Thanks in advance for help me.

Comments

khanz’s picture

------------
Volvo, Video, Velcro. (I came, I saw, I stuck around.)