Hello, I printed out the fields that I can use in views custom. The cck field is not a filefiled but a text field. The cck text field is an array and I am trying to display the first value.

node_data_field_pdf_file_path_field_pdf_file_path_value' => array ( 0 => array ( 'value' => 'New York.pdf', ), 1 => array ( 'value' => 'Seattle.pdf', ), ), )) 

Then I add this to custom field

<?php print $data->node_data_field_pdf_file_path_field_pdf_file_path_value[0]; ?>

and is shows

"array".

Some php help would be great.

Thanks.

Comments

aznboy’s picture

Sorry, I meant that I am trying to print the value, so for example the word "Seattle.pdf". All files are already on the server so no reason to use filefield.

aznboy’s picture

Nevermind, I'm stupid.