All questions about EDocman extension

Dokuments Table Layout with option _blank

  • Johannes Weninger
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #119984 by Johannes Weninger
Dokuments Table Layout with option _blank was created by Johannes Weninger
Hello, is there a way to display documents in the "Documents Table Layout" view in a new tab or page? Many users press X after reading the PDF and the website is completely closed. (no download button, Joomla 3.9.1, Edocman 1.11.1, Hera Template)
Thanks

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

More
5 years 4 months ago #120014 by Mr. Dam
Replied by Mr. Dam on topic Dokuments Table Layout with option _blank
Hi Johannes,
You want to add _blank into the document title in Documents table layout, right?
You can follow below steps to implement it
1. Open file: root -> components -> com_edocman -> view -> common -> documents_table.php
2. Find:
Code:
if($item->document_url != ""){ if($config->external_download_link == 1){ $target = "_blank"; }else{ $target = "_self"; } }else{ $target = "_self"; }
and change to
Code:
if($item->document_url != ""){ if($config->external_download_link == 1){ $target = "_blank"; }else{ $target = "_self"; } }else{ $target = "_blank"; }
Thanks
Dam

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

  • Johannes Weninger
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 4 months ago #120048 by Johannes Weninger
Replied by Johannes Weninger on topic Dokuments Table Layout with option _blank
Thanks, but unfortunately with this change still the same. The documents will still be opened in the same window. Tested with Chrome, Firefox, Edge. Try switching to Protostar Template no change.

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

More
5 years 4 months ago #120065 by Mr. Dam
Replied by Mr. Dam on topic Dokuments Table Layout with option _blank
Hi Johannes,
Please submit ticket and send your site url with super admin account. I'll check the problem for you.
Thanks
Dam

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

Moderators: Mr. Dam