uploading PDF

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

uploading PDF

Post by tintinw » Tue Feb 19, 2008 12:33 pm

i'm quite new to Joomla and I would like to know how to upload PDF files. As what I've seen in the previous thread, just upload the PDF file under images/stories/PDF/mypdffile.pdf. I already done that, but then I don't know what to do next. how can i integrate that on my content ? Thanks

 
tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Tue Feb 26, 2008 8:31 am

do i need to create another folder for a PDF files? if yes, where?
thanks

IndyTim
Joomla! Apprentice
Joomla! Apprentice
Posts: 35
Joined: Sat Dec 01, 2007 7:42 pm

Re: uploading PDF

Post by IndyTim » Tue Feb 26, 2008 10:10 am

I created a dedicated folder for my .pdf files. I then ftp'd the files to the folder. Set the folder level permissions to read. I then created a web link for each of the pdf files.

I'm sure there are other solutions also. This one happened to work for me.

Regards,

IndyTim

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Tue Feb 26, 2008 1:02 pm

thanks. when you said ftp'd the files does that mean you : you upload it on the web-server? where is exactly the folder? can i just create a PDF folder to any folder or should it under joomla itself?
how did you create the weblink?
thanks

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 8:16 am

i'm not sure if i'm in the right thread here...

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 8:59 am

What are you trying to accomplish? Display a PDF file as content so it's viewable on your site? Or are you just trying to upload them, and provide a link to it so someone can either view it in their browser or download it?


Chad

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 9:19 am

hi there again, hmm, "when you say display them as a content" - i'm not sure if i understand it well.

what i would like to have on the site is this :

(image) --- small description is here (and then maybe here is a PDF icon, that when viewer click it,
it will open the PDF file)


that means, instead of the link showing here, as A14DJ and the link of WeeBee3, I would like to appear it as PDF icon and it will open the file when user click on it.

is that possible?

please see attached the site that i'm working on...

thanks
You do not have the required permissions to view the files attached to this post.

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 9:46 am

hi there again, hmm, "when you say display them as a content" - i'm not sure if i understand it well.
n/m...thought you were trying to do some clever slight of hand and have the pdf's as actual content items...viewed as a webpage, not downloadable or viewable in the browser...just a misunderstanding on my part is all. ;)
what i would like to have on the site is this :

(image) --- small description is here (and then maybe here is a PDF icon, that when viewer click it,
it will open the PDF file)


that means, instead of the link showing here, as A14DJ and the link of WeeBee3, I would like to appear it as PDF icon and it will open the file when user click on it.

is that possible?
Sure it can be done! If you uploaded your .pdf with the media manager to a directory (for arguments sake) called pdf, all you need to do is insert the link to that file and use an image as the link itself. Something like the following...

Like this:

Code: Select all

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc consectetuer, tellus at posuere egestas, sem enim lacinia lectus, sit amet tincidunt leo dolor vel augue.</p><br />
<a href="http://www.your_site.com/images/stories/pdf/your_file.pdf"><img src="http://www.your_site.com/images/icons/pdf_icon.png" border="0" alt="pdf icon" title="Click to view or download PDF" /></a>
Or maybe like this:

Code: Select all

<p><a href="http://www.your_site.com/images/stories/pdf/your_file.pdf"><img src="http://www.your_site.com/images/icons/pdf_icon.png" align="left" border="0" alt="pdf icon" title="Click to view or download PDF" /></a> --- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc consectetuer, tellus at posuere egestas, sem enim lacinia lectus.</p>
I'm not that good with using the wysiwyg, and I don't know what you're using for an editor...so I kept it simple with html. HTH!


Chad

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 9:55 am

ok that means i have to upload the PDF icon too, can i just copy it any from the web?

another problem is, as you can see from my previous attachment, the image and the writings are too close from each other, i tried doing some indentions but it's not working.

are there other ways how to approach this?

the other links from site looks strange in IE, but in Mozilla it looks fine, now i don't know where to do some changes...

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 9:58 am

oops i forgot to ask, is that possible too that i can make the PDF icon to the most right, that means after the description but i would like to have it to the most right.

thanks for the code, i will try it then.

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 10:10 am

tintinw wrote:ok that means i have to upload the PDF icon too, can i just copy it any from the web?
It just so happens, if you look in the Media Manager in the M_images folder....there's a pdf icon readily available.
tintinw wrote:another problem is, as you can see from my previous attachment, the image and the writings are too close from each other, i tried doing some indentions but it's not working.
Probably needs some padding or something similar...post a linky to your site and I will take a quick peek and post something that can take care of that. More than likely something like the following in your template style sheets....

img{
padding: 5px;
}

tintinw wrote:oops i forgot to ask, is that possible too that i can make the PDF icon to the most right, that means after the description but i would like to have it to the most right.
You could probably get away with using something similar to below...

Example:

Code: Select all

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc consectetuer, tellus at posuere egestas, sem enim lacinia lectus, sit amet tincidunt leo dolor vel augue.</p><a href="http://www.your_site.com/images/stories/pdf/your_file.pdf"><img src="http://www.your_site.com/images/icons/pdf_icon.png" border="0" align="right" alt="pdf icon" title="Click to view or download PDF" /></a>

Chad

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 10:24 am

I found the link to your site from one of your other posts... here's what you will need to add to your template's template_css.css to pad the images some...

Code: Select all

img{
border: none;
padding-right: 5px;
}

Chad

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 10:26 am

ok, thank you very much.

this is the site here

that is in link "Projects" . i have an image and then the small description about the project.

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 10:29 am

thanks, shall i paste it in my template_css.css? and from there, can i just paste it anywhere? i noticed that my template have some categories, like Global, Links, Navigation, Logo, Header, Search, Menu, Pathway, Sidebox, News, Contacts.

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 10:35 am

Yeah, you can throw it in just about anywhere in the template_css.css file, just somewhere handy incase you want to make adjustments you can find it easily. ;D

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 10:39 am

ok will try it :-)

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 10:44 am

it's up and looks fine by Mozilla but in IE the indents are still the same.

why is it working in Mozilla and by IE not? did i do something wrong here?

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 11:03 am

That's probably the IE influenza. Not sure exactly how to go about fixing that...most likely a conditional comment placed in the <head></head> section of your index.php would take care of it. But the exact code I don't know. Possibly something similar to below. Maybe if someone reads this thread that knows better than I will post the correct solution...

Code: Select all

<!--[if lte IE 6]>
<style type="text/css">
img {padding-right: 5px;}
</style>
<![endif]-->

Chad

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 11:06 am

Below is a link that describes the bug I mentioned a bit better...

http://en.wikipedia.org/wiki/Internet_E ... _model_bug


Chad

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 11:15 am

i see, so it has nothing to do with Joomla?

with the code you gave to me: shall i paste it again in my template_css.css?
<!--[if lte IE 6]>
<style type="text/css">
img {padding-right: 5px;}
</style>
<![endif]-->

thanks for the link you gave, i will go over it.

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 7:37 pm

First, I'm not even sure the code I posted is correct, but if it was you'd need to place it in your index.php....

http://forum.joomla.org/viewtopic.php?f ... 4#p1219919


Chad

ppennington
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Feb 28, 2008 8:34 pm

Re: uploading PDF

Post by ppennington » Thu Feb 28, 2008 8:38 pm

So how do you make a pdf the content item - not just a weblink?

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 10:16 pm

ok thanks chad for the info. i tried what you told me to write this code in my template_css.css :

img
{
border: none;
padding: 5px;
}



this code work fine with Mozill but not with IE. I tried changing "padding into margin-right"
img
{
border: none;
margin-right: 10px;
}


and this code works now with both browsers. This is kind of strange. thanks for the help and input again :-)

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 11:00 pm

I think it's the way IE interprets css rules for padding. I am not much of an internet explorer type and get lost from time to time when it comes to the quirks of IE, especially anything before IE7. At least IE7 has become a teensy bit more compliant with web standards. Hope it all works out for you in the end. Good luck!


Chad

tintinw
Joomla! Intern
Joomla! Intern
Posts: 90
Joined: Mon Feb 11, 2008 9:00 am

Re: uploading PDF

Post by tintinw » Thu Feb 28, 2008 11:24 pm

thank you chad, at least the site looks better now. I also have the PDF icon up and it's working, looks better than previously. thanks for your help :-)

User avatar
leahcim_dach
Joomla! Ace
Joomla! Ace
Posts: 1148
Joined: Sat Oct 14, 2006 9:37 am
Location: Washington

Re: uploading PDF

Post by leahcim_dach » Thu Feb 28, 2008 11:28 pm

No problem. Always glad to lend a hand where I can. BTW, the site looks real nice! Good job!


Chad

Fraenz
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 16, 2008 11:04 am

Re: uploading PDF

Post by Fraenz » Sat Jul 19, 2008 11:02 am

How may I permit a publisher to upload a pdf from the front end?
I have tried including uploading it as an image file when creating an article, but get the error "Unsupported media type". Is there a neat way around that will not scare off a competent but non-technical user?

Fraenz
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Jul 16, 2008 11:04 am

Re: uploading PDF

Post by Fraenz » Sat Jul 19, 2008 3:11 pm

To reply to my own question, the excellent linkr extension has an option to link from articles to files. This option includes the ability to upload a file, without apparent limits on the media type. That is such a good extension.

User avatar
leolam
Joomla! Master
Joomla! Master
Posts: 20118
Joined: Mon Aug 29, 2005 10:17 am
Location: Netherlands/ UK/ S'pore/Jakarta/ North America
Contact:

Re: uploading PDF

Post by leolam » Sat Jul 19, 2008 5:26 pm

just at the pdf-extension to the allowed media files:

admin/components/com_media/admin.media.php and add around line 188 the pdf extension

done :)

Leo
Joomla's #1 Professional Services Provider:
#Joomla Professional Support: https://gws-desk.com -
#Joomla Specialized Hosting Solutions: https://gws-host.com -
#Joomla Webmaster Services: gws-webmaster.services

oavs
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Jun 28, 2006 3:54 pm

Re: uploading PDF

Post by oavs » Tue Aug 12, 2008 12:25 pm

Hi Cahd ,

You have been very helpful with he pdf file upload and was wondering If I could expand on this please with my questions?

I have noticed that media manager automatically opens '/public_html/joomla/images folder. If I want to upload PDF files should I upload them to images/PDF/ folder or can create /public_html/joomla/PDF folder and able to see both folders images and the PDF within the media manager?

Second question is how can I upload PDF's every month or so that it automatically shows as links? Does joomla has some feature for this ? Is it easy enough to do?

Thank you

Faruk

 

Locked

Return to “General Questions - 1.0.x”