Zim

export template - image or document links open in new tab

Asked by pvanb

I have a wiki with images and documents attached, with links to those documents in the text. If exporting to a webpage, I would ike these links to open the documents in a new browser tab/window, e.g.,

Now a link to an attachment is for example transformed to:
<a href="link_to_my_doc">Download the document</a>

What I would like is:
<a href="link_to_my_doc" target="_blank">Download the document</a>

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

Afraid the current export function does not allow that. Maybe you can file
a bug report to track the feature request?

Thanks,

jaap

On Thu, Jun 5, 2014 at 9:16 PM, pvanb <email address hidden>
wrote:

> New question #249817 on Zim:
> https://answers.launchpad.net/zim/+question/249817
>
> I have a wiki with images and documents attached, with links to those
> documents in the text. If exporting to a webpage, I would ike these links
> to open the documents in a new browser tab/window, e.g.,
>
> Now a link to an attachment is for example transformed to:
> <a href="link_to_my_doc">Download the document</a>
>
> What I would like is:
> <a href="link_to_my_doc" target="_blank">Download the document</a>
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

Can you help with this problem?

Provide an answer of your own, or ask pvanb for more information if necessary.

To post a message you must log in.