I'm relatively new to the EPiServer system. I've only been working in this for about two months and I've reached something that just stumps me. I've read similar posts on this site but I'm not sure what to do to solve this. I've uploaded some PDF's to the Media section of my site. They upload fine and I'm able to link to them in content VIA the Editor but when I try to open them I'm just taken to the login screen. If I log in I'm seeing something stating that "Preview is not available for this item." How can I display an uploaded file. We rely heavily upon PDF's and I'm afraid that I've completely missed a step.
If you just drag the media file /pdf to the editor it will probably try to find a way to render the content type (Generic Media if you haven't created a separate one) in the editor. If you lack a matching display template or partial view for it I guess you will get a similar error message.
Tried using the link button in editor instead to create link?
Try creating a display template for generic media that only renders a link to it.
If you want you can of course add a new media content type for pdfs and make a custom display template for it with matching name (or using a UIhint attribute) that actually renders the pdf on the page.
Hope that helps...
I was using the link button to create the link. It looks like creating a display template may be the way to go.
Ok, probably this error then?
Brilliant, that was the solution I've been looking for and just couldn't find. Thanks.