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
direct link
- Benno
- Phoca Hero
- Posts: 9441
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: direct link
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
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
-
- Phoca Member
- Posts: 32
- Joined: 31 Oct 2013, 19:11
Re: direct link
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
Do I need the phoco download button and plugin?
D
-
- Phoca Member
- Posts: 32
- Joined: 31 Oct 2013, 19:11
Re: direct link
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
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
- Benno
- Phoca Hero
- Posts: 9441
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: direct link
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:
to:
Benno
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;
}
Code: Select all
.phocadownloadfile32 {
margin: 5px;
padding: 10px 10px 10px 40px;
}
See Forum Rule #5: forum-rules.phpI 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
Kind regards,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).
Benno
-
- Phoca Member
- Posts: 32
- Joined: 31 Oct 2013, 19:11
Re: direct link
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
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
-
- Phoca Member
- Posts: 32
- Joined: 31 Oct 2013, 19:11
Re: direct link
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
.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
- Benno
- Phoca Hero
- Posts: 9441
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: direct link
Hi,
Step 1 --> Create a menu link to Phoca Download Component (List of Categories)
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.
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.
Step 3 --> Save the article with Phoca Download File Link
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)
Kind regards,
Benno
Step 1 --> Create a menu link to Phoca Download Component (List of Categories)
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.
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.
Step 3 --> Save the article with Phoca Download File Link
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)
Kind regards,
Benno
-
- Phoca Member
- Posts: 32
- Joined: 31 Oct 2013, 19:11
Re: direct link
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
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
- Benno
- Phoca Hero
- Posts: 9441
- Joined: 04 Dec 2008, 11:58
- Location: Germany
- Contact:
Re: direct link
You're welcome!
Kind regards,
Benno
Cache?BTW, the previous css edit now works, not sure why it didn't the day before, but the code you supplied works now.
Kind regards,
Benno