Hi,

In have created a node-type with CCK and Imagefield (Version 6.x-3.0). After uploading the image I can see the image shown in the node-view, but the images are converted to links to the images in the printer friendly view. This behaviour is also true when using the PDF-creation. I've tried both private and public file paths.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Please provide URL to page with the problem so that I can investigate the problem further, or at least provide some excerpts of the file source with the img tag (including src) of the problem.

João

xurubo93’s picture

Hi,

here is the link to the node, which you requested. Please understand that I have to turn off public access soon, as this site is under development. You can use this link also for my other topic: Footer section is shown in header

Thank you very much for your fast response.

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Hi,

Thanks for the URL.. I think you can turn off public access.. Next time, it might be better to send me the link via PM, if public access is an issue.

The problem with the images is really strange.. On one hand, there's the filename.jpg?0123456 problem reported in #420460: problem with images with a numerical query.

On the other hand, something is doing a redirect from:

http://example.com/sites/default/files/filename.jpg?1236009707

to

http://example.com/sites/all/modules/filefield/icons/protocons/16x16/mim...

when being accessed inside the print node..

This is a problem originating in the filefield module for sure, so I am going to mark this issue as duplicate and you can follow the progress in #420460: problem with images with a numerical query..

João

kloewer’s picture

Have the same Problem, worked around it by addressing the image directly in the template:

<img src="/sites/default/files/imagecache/printer/<?php print $node->field_img[0]['filename'] ?>" />

where

$node->field_img[0]['filename'] is the name of your imagefield. Lookup your exact variable in your Contemplate Templat's Body Variables...

--
http://drupal.org/project/contemplate

vunger’s picture

kloewer, how can that work? Contemplate works with content types and there's no content type for the printer-friendly page.

And if you used $node->field_img[0]['filepath'] instead of $node->field_img[0]['filename'], you wouldn't have to hard-code the path.

I don't understand what the numbers on the end of the images has to do with the problem of images on the printer-friendly page. I've figured that one out and it's an Imagefield issue. See #1047640: Images themed as files rather than as images in printer friendly version.

gozigzag’s picture

See http://drupal.org/node/531084 for instructions on how to override the timestamp added to images with ImageField.

Jim@drupal.be’s picture

http://drupal.org/node/1047640
comment #2 solved it for me