Hi Jan, that did the trick! Thanks very much.
Here is the guide following your advice:
Find the following code:
[code]$output .= '<div class="phocadownloadfile'.(int)$iSize.'"><a href="'. JRoute::_($link).'" '.$targetOutput.'>'. $textOutput.'</a></div>';[/code]
change it to:
[code]$output .= '<div class="phocadownloadfile'.(int)$iSize.'"><a href="'. JRoute::_($link).'" '.$targetOutput.'><img src="../plugins/content/phocadownload/images/image_of_your_choice" alt="pdf" width="" height="" /></a></div>';[/code]
Substitute "image_of_your_choice" for an existing image on the directory. "../" will be substituted by http:www.yoursite.com. Can place the image in a different directory and adjust path accordingly.
This can be applied to other views, such as section, category, file, etc, all noted on the code.
Adjust CSS:
/plugins/content/phocadownload/css/phocadownload.css (line 65)
[code]
.phocadownloadfile16 {
/*background:url("../images/icon-download-16.png") no-repeat scroll 5px center #FDFDFD;*/
background: transparent;
border:0px solid #CCCCCC;
margin:0px 5px 5px 5px;
padding:2px;
float: right;
}[/code]
Hpe it make sense. Thanks again. fdkid
[Phoca download plugin] Only the icon visible
-
- Phoca Member
- Posts: 13
- Joined: 13 May 2008, 00:54
Re: [Phoca download plugin] Only the icon visible
Last edited by fdkid on 17 Jul 2010, 21:16, edited 3 times in total.
-
- Phoca Member
- Posts: 13
- Joined: 13 May 2008, 00:54
Re: [Phoca download plugin] Only the icon visible
One more question...
This plugin places a link to a file to download on an article. The link is obviously visible on the Joomla Article's view.
Is there any way to make it visible in other views? Like for example in Category list view, or Blog view? I would like to show list of articles in a category or section with its corresponding link to a file to download. Is this possible at all? Thanks again, fdkid
This plugin places a link to a file to download on an article. The link is obviously visible on the Joomla Article's view.
Is there any way to make it visible in other views? Like for example in Category list view, or Blog view? I would like to show list of articles in a category or section with its corresponding link to a file to download. Is this possible at all? Thanks again, fdkid
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [Phoca download plugin] Only the icon visible
Hi, it is content plugin, it means it can be used only in articles. But maybe on JED there are some extensions which can make a content plugin working on other place than the content
Jan
Jan
If you find Phoca extensions useful, please support the project