direct link

Phoca Download - download manager
claven123
Phoca Member
Phoca Member
Posts: 32
Joined: 31 Oct 2013, 19:11

direct link

Post by claven123 »

How do I set up a direct link to a phoca download file in a Joomla article?

Ideally, they click on the file and the download dialog comes up or it just downloads and is viewed (almost always a PDF file).

D

Tags:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9110
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: direct link

Post by Benno »

Hi,
1.) Create an Menu Link to Phoca Download Component (List of Categories).
2.) Then Copy the link (by right click) you get when you hover over the file in frontend and paste this link into your article.
3.) Example: viewtopic.php?f=16&t=23003&start=10

Kind regards,
Benno
claven123
Phoca Member
Phoca Member
Posts: 32
Joined: 31 Oct 2013, 19:11

Re: direct link

Post by claven123 »

Is there a way to make a word or group of words a link to the file? Say...... A map of the camp is here. Where the word here is the link?

Do I need the phoco download button and plugin?

D
claven123
Phoca Member
Phoca Member
Posts: 32
Joined: 31 Oct 2013, 19:11

Re: direct link

Post by claven123 »

I was able to use the buton and download plug in.

I see the link with the words I chose as the title, as a hyperlink.

How do I get rid of the box and icon?

I can't post the image for some reason. But there is a icon to the left and the link and its surrounded by a large box

D
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9110
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: direct link

Post by Benno »

Hi,
If you had followed my recommendations in post one, you would not need to change the output of the Phoca Download Plugins by CSS. For a simple textlink you do not need the plugin.
If you now want to use the plugin, you can change the following in order not to display the frame and the icon:
/media/plg_content_phocadownload/css/phocadownload.css
Line 52
from:

Code: Select all

.phocadownloadfile32 {
    background: #fdfdfd url(../images/icon-download-32.png) 5px center no-repeat;
    border: 1px solid #cccccc;
    margin: 5px;
    padding: 10px 10px 10px 40px;
}
to:

Code: Select all

.phocadownloadfile32 {
    margin: 5px;
    padding: 10px 10px 10px 40px;
}
I can't post the image for some reason. But there is a icon to the left and the link and its surrounded by a large box
See Forum Rule #5: forum-rules.php
If you have problem on your site, please paste the link to your site or link a screenshot of your site (store your screenshot on some image server and paste a link to this image into the post).
Kind regards,
Benno
claven123
Phoca Member
Phoca Member
Posts: 32
Joined: 31 Oct 2013, 19:11

Re: direct link

Post by claven123 »

Ok, going back to your recs from post one.

I created a menu link with the component (list of cat) I then copied it:
index.php?option=com_phocadownload&view=categories

and pasted this into the article and it only displays the words above.

Am I missing something? Or am I totally doing it wrong? Why I went the other route.....

d
claven123
Phoca Member
Phoca Member
Posts: 32
Joined: 31 Oct 2013, 19:11

Re: direct link

Post by claven123 »

I also edited the css file as above and the box and icon are still there.




.phocadownloadcategory32 {
background: #fdfdfd url(../images/icon-category-32.png) 5px center no-repeat;
border:1px solid #cccccc;
margin:5px;
padding: 10px 10px 10px 40px;
}

.phocadownloadfile32 {
margin:5px;
padding: 10px 10px 10px 40px;
}

.phocadownloadplay32 {
background: #fdfdfd url(../images/icon-play-32.png) 5px center no-repeat;
border:1px solid #cccccc;
margin:5px;
padding: 10px 10px 10px 40px;


Thanks,

D
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9110
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: direct link

Post by Benno »

Hi,
Step 1 --> Create a menu link to Phoca Download Component (List of Categories)
Image

Step 2 --> Go to frontend and to the file you want to have in article. Copy the link by right click. It must be the complete link with www and your domain in front. The image below is an example. Your link will look different.
Image

Step 3 --> Go to backend and to the article where the Phoca Download link should appear. Klick the Insert/Edit Link button und paste the Link into the URL field. Image

Step 3 --> Save the article with Phoca Download File Link
Image

Step 4 --> Go to frontend and you will find the text link inside your article. If you now click on your text link, the file will be downloaded. (Without any plugin)
Image

Kind regards,
Benno
claven123
Phoca Member
Phoca Member
Posts: 32
Joined: 31 Oct 2013, 19:11

Re: direct link

Post by claven123 »

Sweet!! that worked. Thanks for the help, that little bit helped tons!!

BTW, the previous css edit now works, not sure why it didn't the day before, but the code you supplied works now.

So, both ideas now work,


Thanks,

D
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9110
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: direct link

Post by Benno »

You're welcome!
BTW, the previous css edit now works, not sure why it didn't the day before, but the code you supplied works now.
Cache?

Kind regards,
Benno
Post Reply