Closed (works as designed)
Project:
PDF to ImageField
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2012 at 13:39 UTC
Updated:
18 Jun 2012 at 23:20 UTC
When I Create new content, there is obviously a field for uploading the PDF file. But the destination imagefield is visible, even though it is generated, and it has its own Upload button. Is there a way to
Comments
Comment #1
dman commentedThat's currently exposed - basically by design, so that editors can choose a better, manually chosen thumbnail if they prefer. A chosen image takes priority over an automatic one.
The data and the functionality still pretty much has to be there anyway, removing it would be cosmetic only. But it's possible.
You could hide it with css or http://drupal.org/project/advancedform - which would be easy.
The option to hide the image field was added to the D7 version, but is not currently there in D6
Comment #2
iantresman commentedMakes sense, and thanks for the pointer to AdvancedForm, which I hadn't heard of before. But a D6 option would be good :-)
Comment #3
fizzbin commentedI solved this same thing myself by taking away edit permissions on the destination image field for certain Roles. Since the field is empty until the PDF upload triggers the thumbnail generation, they will only see the file uploader for the PDF. They don't need edit privileges for the field to populate via ImageCache action, all they need is view permission for that field on the freshly created node. Make sense? Anyway, I ran into this, worked around the problem, and it's working for me...hope that helps.
Comment #4
dman commentedThe option to hide the additional imagefield and only use it internally is part of the 7.x versions.
Personally, I like to see it because I'm familiar with the underlying data structure, but it's reasonable to hide it from editors also if you want to keep things looking simple.
The workaround using field-permissions to hide the field is also OK. I think there are enough options for this question now..