2

I want to have a .pdf application form attached by default as a cck field on a custom content type called vacancies, so that every new vacancy created has the pdf file attached without the user having to upload it manually. Is there any way to do this? Thanks in advance!

1 Answer 1

1

Probably you need to show a default PDF file attachment with custom type nodes. And need to upload some specific to replace the default one via CCK file field.

CCK file field cannot be associated with some default file easily.

The best approach can be...

  • Place the default document in file system
  • Edit content-type.tpl.php and check CCK field (e.g. $node->field_name) for file upload
  • Print the link of uploaded file if exists Else print the link to default file
1
  • I suppose it will be the same for views, modifying the template file, will it not? Thanks for that. Commented Jun 29, 2011 at 12:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.