Make PDF Files accessible to site visitors
Easy to do, not so easy to figure out the first time it must be done.
**CORRECTION thanks to those who pointed out the "File" class in the Create new.. drop down, duh? My only defense is too much stuff, and that is a poor defense. Leaving this article intact below for historical reference, and just in case somebody else is as dumb as me. More than one way to skin a cat or insert files of various sorts in eZ Publish. CORRECTION END**
The online editor (specifically the button bar that displays above most text editing areas) has a paperclip looking button to start the "Edit/insert object" procedure. This object can be just about anything, including files. like pdf documents.
Three choices for display of what in an email document would be called Attachments:
- view = embed **************************************
- view = embed-inline *******************************
- view = full *******************************************
optaros_cmsReport_012206_sgg
1
Related objects
| None |
******************************************************
Figured this out, after writing The Learning Mountain. Some things are so obvious to anyone who has actually used the system, they don't seem like they would need explanation to first time users.
Final tweak is to set the "Section" of the pdf file to "Standard". The default "Auto" upload stores the file in the "Media" section under "Files". This location is access restricted and will be so noted the first time the page loads and says you do not have permission to access the file.
Without going into all the details of how cool and necessary it is to have access restricted areas, the fix is to access the resource in Admin->Media Library->Files folder. Edit the resource, and in the left pane, drop down the section selector and set it to "Standard". Sections are a neat concept you can study as the need arises and time permits.
Document Management System
If not painfully obvious already, consider what could be achieved simply with:
- page layouts
- the eZ Article or Documentation class
- the vew=full details setting for doc display
- built in site search and tagging
- multiple document uploads
- access restrictions using sections
A simple, reliable, intra- inter- net based document management system that will scale. The eZ developers may be on to something here!
