Thumbnail Link in Phoca Download
-
- Phoca Newbie
- Posts: 2
- Joined: 09 Sep 2013, 09:47
Thumbnail Link in Phoca Download
Good day, awesome Component, very versatile, I would like to know how to go about making the "{pdimage}" or image a link to the publication?
-
- Phoca Newbie
- Posts: 2
- Joined: 09 Sep 2013, 09:47
Re: Thumbnail Link in Phoca Download
Fixed the problem, on line 143 in default_files.php
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image"> <a href="'. JRoute::_(PhocaDownloadRoute::getFileRoute($v->id,$this->category[0]->id,$v->alias, $this->category[0]->alias, $v->sectionid, 'download').$this->t['limitstarturl']).'" target="_blank">'.$l->getImageDownload($v->image_download).'</a> </div>';
$d .= $pdImage;
}
$pdImage = '';
if ($v->image_download != '') {
$pdImage .= '<div class="pd-image"> <a href="'. JRoute::_(PhocaDownloadRoute::getFileRoute($v->id,$this->category[0]->id,$v->alias, $this->category[0]->alias, $v->sectionid, 'download').$this->t['limitstarturl']).'" target="_blank">'.$l->getImageDownload($v->image_download).'</a> </div>';
$d .= $pdImage;
}