hi!
how to change download link in category layout to directly download link instead of popup ?
i was trying to edit
/www/components/com_phocagallery/views/detail/tmpl/default.php but i can`t get this working....
it`s probably between 205 and 220 lines in this file, but i can`t edit it;)
thanks for your help:)
how to change download link
-
- Phoca Member
- Posts: 32
- Joined: 15 Aug 2008, 21:39
Re: how to change download link
i resolve my problem
and now i have direct link to image;)
Code: Select all
if ($value->displayicondownload == 1)
{
$nazwapliczku = str_replace(' ','%20', $value->filename );
?> <a title="<?php echo JText::_('Image Download');//$value->title; ?>" href=<? echo"http://MYSITENAME/images/phocagallery/$nazwapliczku";?><?php
if ($this->detailwindow == 1)
{
echo ' onclick="'. $value->button->options.'"';
}
else
{
echo '';
}
echo ' >';
echo JHTML::_('image', 'components/com_phocagallery/assets/images/icon-download.'.PhocaGalleryHelperFront::getFormatIcon(), JText::_('Image Download'));
echo '</a>';
}
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: