-
- 33 Posts
Hi,
I've a problem with the extension Filelister. I use the fileTpl Chunk to display the files. That works fine.
Here is the chunk:
<tr class="[[+cls]]">
<td class="feo-filename">[[+link]]</td>
<td class="feo-filesize">[[+filesize]]</td>
<td class="feo-lastmod">[[+lastmod:date=`[[+dateFormat]]`]]</td>
</tr>
My problem is, I want to open the file in a new tab in the browser. I modified the chunk, but it wouldn't work.
Greets,
Michael
-
- 24,544 Posts
Add target="_blank" to the filelister fileLinkTpl:
<a target="_blank" href="[[+url]]">[[+filename]]</a>
-
- 33 Posts
Thanks a lot, that works fine for me!!
Michael
-
- 299 Posts
The problem is, the template for fileLinkTpl is used for the folder links too. If you browse folders it will open the folder in a new window too.