help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Feature requests for JEM 2.0 - initial public release

[SOLVED] PDF attachment

[SOLVED] PDF attachment

4 years 8 months ago - 4 years 8 months ago
#26992
Please replace in common/responsive/default_attachment.php (and wherelse default_attachment is needed) the lines 38 and 39
Code:
$attribs = array('class'=>'file-name'); echo JHtml::_('link','index.php?option=com_jem&task=getfile&format=raw&file='.$file->id,$image,$attribs);
by this:
Code:
$attribs = array('class'=>'file-name','target'=>'_blank'); echo JHtml::_('link',str_replace(JPATH_SITE, "", JEMAttachment::getAttachmentPath($file->id)),$image,$attribs);

depebo has described it here already for JEM 2.2x and it seems worth to be integrated into next update - since my PDF showed broken again after updating from JEM 2.2x to 2.3x.

depebo's solution obviously prevents pdf files from breaking and appearing distorted when they are downloaded from an event. Thx!
Regards,
Herbert
Last edit: 4 years 8 months ago by HerKle.
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Time to create page: 0.554 seconds