Closed (won't fix)
Project:
PDF Reader
Version:
7.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Feb 2012 at 22:43 UTC
Updated:
21 Aug 2012 at 17:59 UTC
Hi,
I have a use case where my content type contains a file field,
However the file field can contain different type of files: doc, pdf, xls, ppt, etc.
I'd like to just have the PDF embed render when the file is a PDF file, otherwise it falls back to a default field formatter (a link).
Please see my patch and if this could help others it would be great!
| Comment | File | Size | Author |
|---|---|---|---|
| file_type_check.patch | 1.12 KB | xcf33 |
Comments
Comment #1
victorcoder commentedMmm this renderer is only for PDF files, you can limit possible file uploads in field config and add another field for different filetypes.
I can't include the patch because if you upload other filetype you can not configure the renderer to use as pdf renderer is already selected.
Thanks