Jump to content

Recommended Posts

Posted

Hello everyone,

I have not really found a lot on this in the forums, maybe someone can point me it the right direction.

I would like users to be able to upload PDFs. So far I have come up with the solution to allow the .pdf extension for image field uploads and then the user can insert a link to the file in the main content field, using the editor. This works reasonably well, only thing is the pdf-files are listed in the "insert image" dialog window. I suppose I can live with that if there is no better solution. The only thing is they mess up the nice grid view provided by the Collage Plus module. It is probably not so hard to fix this, but before I invest energy here I would like to ask if anyone has more elegant solutions for PDFs...

Posted

Yep, basically what Martijn said.

  1. Go to Setup -> Fields -> Add New Field
  2. Add a name and label for your field and change the Type dropdown to File
  3. Under the Details tab you will see allowed filetypes and PDF is in the list - alter the list to suit you
  4. Change Maximum Files Allowed to however many you want - perhaps 1 in this case?
  5. Save your changes
  6. Add to your template

That's it really.

  • Like 5
Posted

Use inputfield files, not images.

Oh, that was so obvious, just hadn´t seen it. Thanks

Yep, basically what Martijn said.

  1. Go to Setup -> Fields -> Add New Field
  2. Add a name and label for your field and change the Type dropdown to File
  3. Under the Details tab you will see allowed filetypes and PDF is in the list - alter the list to suit you
  4. Change Maximum Files Allowed to however many you want - perhaps 1 in this case?
  5. Save your changes
  6. Add to your template

That's it really.

Thank you, I will try it soon!

  • Like 1
  • 3 years later...
Posted
On 7.10.2013 at 2:17 PM, Pete said:

Yep, basically what Martijn said.

  1. Go to Setup -> Fields -> Add New Field
  2. Add a name and label for your field and change the Type dropdown to File
  3. Under the Details tab you will see allowed filetypes and PDF is in the list - alter the list to suit you
  4. Change Maximum Files Allowed to however many you want - perhaps 1 in this case?
  5. Save your changes
  6. Add to your template

That's it really.

Thank you! It works.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...