Question

When you use the file import in drupal 6 it adds a whole lot of formatting. How do I just get is to return the path. I am printing the following.

<?php
print $node->field_factsheet[0]['view']
?>
Was it helpful?

Solution

To get the path to the file use:

<?php
print $node->field_factsheet[0]['filepath']
?>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top