4

Node theming trouble...

http://drupal.org

Hi there

I'm trying to style my nodes via. node-type.tpl.php.
I have used the print r function and get this:

[field_mainblogimage] => Array
                (
                    [0] => Array
                        (
                            [fid] => 51
                            [list] => 1
                            [data] => Array
                                (
                                    [description] =>
                                    [alt] =>
                                    [title] =>
                                )

                            [uid] => 1
                            [filename] => 83373914.jpg
                            [filepath] => sites/default/files/17/83373914.jpg
                            [filemime] => image/jpeg
                            [filesize] => 16916
                            [status] => 1
                            [timestamp] => 1274278782
                            [origname] => 83373914.jpg
                            [nid] => 17
                            [view] =>
                        )

                )

I have tried allmost everything that I can think off, but still no result.
As I see it I should use the following code and that should work?:

<?php
      if ($node->field_mainblogimage[0]['view']) {
?>

read more

Read »
Created by emmajane 1 year 50 weeks ago
Category: News   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Recent comments