Closed (fixed)
Project:
FileField
Version:
5.x-2.3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2008 at 23:49 UTC
Updated:
2 Aug 2008 at 01:47 UTC
Hi. I've created a content type with two fields, one is an image field and the other one is a file field. What I want is to upload a pdf file and an imagefile, but then not to show the filefield, only the imagefile, so you can click on the imagefield and open the pdf file.
I think this could be done with contemplate like this:
<a href="<?php print $node->field_filefield[0]['view'] ?>">
<?php print $node->field_imagefield[0]['view'] ?>
</a>
Obviously this doesn't work at all.
Any help?
Thanks in advance
Luis
Comments
Comment #1
lelizondo commentedDone it.
note the "/"... without it, I just got the filepath but not relative to the drupal site
Luis
Comment #2
lelizondo commentedok.. the right way to do it is:
forget about my previous post.
Luis
Comment #3
aaron commentedthe following would be preferable in most cases:
(in d6):
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.