Page 2 of 2

Re: [Phoca download plugin] Only the icon visible

Posted: 17 Jul 2010, 21:07
by fdkid
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

Re: [Phoca download plugin] Only the icon visible

Posted: 17 Jul 2010, 21:12
by fdkid
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

Re: [Phoca download plugin] Only the icon visible

Posted: 17 Jul 2010, 21:27
by Jan
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 :idea:

Jan