Active
Project:
Views Custom Field
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2011 at 11:19 UTC
Updated:
1 Feb 2011 at 01:40 UTC
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
Comment #1
aznboy commentedSorry, 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.
Comment #2
aznboy commentedNevermind, I'm stupid.