templated-docs icon indicating copy to clipboard operation
templated-docs copied to clipboard

Feature: hyperlinks

Open alexmorozov opened this issue 8 years ago • 2 comments

We should be able to make a certain part of a document a hyperlink. At the first glance, a custom template tag will suffice:

{% hyperlink 'http://site.com' %}
here goes a part of a document
{% endhyperlink %}

alexmorozov avatar Mar 07 '17 09:03 alexmorozov

In microsoft access query you do something like: {{ foo }} & "#" & {{ bar }} & "#" where hyperlink is defined between "#" characters. For me the question is how is hyperlink defined in ".odt" file so maybe it is possible to prepare custom context data with hyperlink allready attached.

vasjapavlovic avatar Mar 07 '17 12:03 vasjapavlovic

I've created a test document, and a simple text link looks like this:

<text:a xlink:href="http://site.ru" office:target-frame-name="_top" xlink:show="replace">
... link inner contents ...
</text:a>

So I think you could try use this tag.

alexmorozov avatar Mar 07 '17 20:03 alexmorozov