You need to Register for free and Login to post a message in the forum.

Forum

Displaying a PDF file in DNN5
Last Post 2010-01-30 02:54 AM by Joseph Craig. 8 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Bart A ZoniUser is Offline
Posts:10

--
2009-12-19 05:17 AM  
I wish to display a PDF file in DNN5. What is the best practice? Create a page that displays a file and target a new window? (This doesn't allow for the navagation to be available to the site visitor. S/he needs to know to close or switch windows to get back to the site.) or Use and IFrame? (I am having trouble with sizing the IFrame window, using this method)
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9005
Avatar

--
2009-12-19 10:20 AM  
I have seen modules that will display a PDF file inside of a DotNetNuke page. My normal practice is to set links to PDF files and set the link to open in a new tab or window.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Bart A ZoniUser is Offline
Posts:10

--
2009-12-20 11:58 PM  
Thanks Joe. I suspect that is what I will be doing going forward.
Do you know if the IFrame has any practical purpose and do you know of anyone who usese it successfully?
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9005
Avatar

--
2009-12-21 12:18 AM  
The stated purpose of the IFrame module is:

"The IFrame is a browser feature which allows you to display content from another web site within a frame. Within the content of DotNetNuke, the IFrame module allows the embedding of an internal/external URL within the module"

Personally, I tend to view the IFrame modules as a module of last resort.  I think of using it when almost nothing else will work.

In the case of PDF files, there are better alternatives.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Bart A ZoniUser is Offline
Posts:10

--
2009-12-22 11:10 PM  
Thanks Joe. I will play around with IFrame, displaying pages from another website to see how it reacts, but it sounds like I am going to conclude there are better ways to handle things than using IFrame. Bart
Allen FosterUser is Offline
Nuke Newbie
Nuke Newbie
Posts:7

--
2010-01-28 04:48 PM  
Joe,
Do you happen to remember the name(s) of the modules that can display a PDF w/i a DNN page?
I searched Snowcovered but didn't see any.
Thanks!
Bart A ZoniUser is Offline
Posts:10

--
2010-01-28 09:25 PM  
Allen I played around with IFrame to display a PDF and got it to work pretty well. It was a matter of setting the correct page size to match the rest of the website page widths. It does have one problem. If a navagation menu dropdown contains many sub-menu items, enough that the list of sub-menu items would extend far enough down to need to overlap the top of acurrently displayed PDF, the list of sub-items is cut short (giving an appearance that the sub-menu went behind the PDF). I found this to be unacceptable and will not use IFrame for my solution, though otherwise it looks and works really great. I may consider using this if I know I have a site that will only contain 3 or 4 sub-menu items maximum underneath any of the navigation buttons. If I did use this, I would make a template of the one that I created, so that I could easily create pages which contain PDFs, as all I would have to change was the url pointing to the .pdf file. Anyhow, I went with the solution of just displaying the PDF in a new Window or Tab (and not containing navigation, requiring the site visitor to know that he has to switch windows or close the window with the PDF File to get back to my site). A second reason I went with this decision was that my client has a requirement to be able to periodically add new PDF files to the site. this allows my client to add additional PDF files via just adding another link and uploading the file. The client is not of the technical level to add new pages, which would be required if I use the IFrame. However, I would be very interested to hear of the names of the other modules that can display a PDF within a DNN page if Joe can remember.
gbrownUser is Offline
Nuke Ace
Nuke Ace
Posts:44

--
2010-01-29 01:36 AM  
There is a new module on Snowcovered that works with Scribd.com. This allows you to embed their excellent IPaper module into your site and show pdf, Word, Excel, Powerpoint, etc. You may even be able to take the code available on Scribd and put in into a text/html module and do this for free too.

Greg
Joseph CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9005
Avatar

--
2010-01-30 02:54 AM  
I looked around, but I can't find a module that displays PDF files directly.

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
You are not authorized to post a reply.

Active Forums 4.3

Latest Forum Posts

Enforce Terms Tutorial Update by Vistalogix Corporation
I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
RE: Best Practices for Modifying a Custom Module by Joseph Craig
Start up the development website, then install the module using the package that you have. Then, yo
Best Practices for Modifying a Custom Module by schilders
Good Morning, I'm needing to modify a custom built module created by another developer targeted f
RE: Admin menu problem by alireza arabiyan
hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
RE: Admin menu problem by Joseph Craig
Yes, that is what you should have done. What is the URL for your home page? What is the URL for
RE: Admin menu problem by alireza arabiyan
hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
RE: Admin menu problem by Joseph Craig
How did you move it? Have you added an entry in the portalalias table for the site's domain name?
RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
Set up a user with dbo privileges and set the connection string for that user, rather than using Win
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds