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

  • On the Create new content screen, hide the generated imagefield and upload button
  • On the Edit node page, display the generated image (but not the upload button)

Comments

dman’s picture

That'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

iantresman’s picture

Makes sense, and thanks for the pointer to AdvancedForm, which I hadn't heard of before. But a D6 option would be good :-)

fizzbin’s picture

I 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.

dman’s picture

Status: Active » Closed (works as designed)

The 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..