Export to HTML Template page.links attribute has no target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hello,
I'm trying to use the page.links attribute to iterate over the current page links with the following code:
<!--[% FOR page IN pages %]-->
...........
<div class="menu">
[% FOR link IN page.links %]
<a href='[% uri(link) %]'>[% link.name %]</a>
[% END %]
</div>
...........
[% END %]
And the export shows the following error message:
zim 0.65
Platform: nt
Locale: en_US cp1252
FS encoding: mbcs
Python: (2, 7, 11, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
branch: 065
revision: 805 <email address hidden>
date: 2015-11-01 15:42:45 +0100
======= Traceback =======
File "zim\gui\
File "zim\gui\
File "zim\export\
File "zim\export\
File "zim\templates\
File "zim\signals.pyo", line 376, in emit
File "zim\signals.pyo", line 224, in call_default
File "zim\templates\
File "zim\templates\
File "zim\templates\
File "zim\templates\
File "zim\templates\
File "zim\templates\
File "zim\export\
AttributeError: 'Link' object has no attribute 'target'
As noted in the message, I'm using Zim 0.65 in a Windows 10 machine.
I attach an example book and the template to reproduce the error.
Thanks
Gave it a try on 0.67-rc1 and it seems to work correctly