Welcome, Guest
Username: Password: Remember me
Feature requests for JEM 2.0 - initial public release
  • Page:
  • 1

TOPIC:

[SOLVED] PDF attachment 2 years 11 months ago #26992

  • HerKle
  • HerKle's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 159
  • Thank you received: 28
Please replace in common/responsive/default_attachment.php (and wherelse default_attachment is needed) the lines 38 and 39
$attribs	= array('class'=>'file-name');
echo JHtml::_('link','index.php?option=com_jem&task=getfile&format=raw&file='.$file->id,$image,$attribs);
by this:
$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
The following user(s) said Thank You: jojo12

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

Last edit: by HerKle.
  • Page:
  • 1
Time to create page: 0.405 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......