Zim

Are there recent changes in the definition / processing of HTML templates?

Asked by gottelt on 2016-02-04

Hi,
it seem that there are recent changes in how templates for the HTML export are defined and / or used.
I have template that worked well with zim 0.60. Now I've updated to zim 0.65 and the same template gives me a html folder with empty files. This appears to be related to linking synthax: While in my past exports I find the subpages linked in the index file via <li><a href="./Folder/SubFolder/file.html... </a></li> (This also works when I export with the default tempplate)
When I now apply my own template to export the links look like
<li><a href="#Folder:SubFolder:File/"...</a></li>

Can you help me with fixing this?
Appreciating any help,
Friedrich

Question information

Language:
English Edit question
Status:
Solved
For:
Zim Edit question
Assignee:
No assignee Edit question
Solved by:
gottelt
Solved:
2016-02-11
Last query:
2016-02-11
Last reply:
2016-02-08

Hi,

Yes, the template syntax has changes slightly. The templates that ship with
zim are all updated, but if you made a custom template it needs some
changes. I can help, but I need to see the template you use, not just the
output.

See this page for the full documentation:
http://www.zim-wiki.org/manual/Help/Templates.html

Regards,

Jaap

On Thu, Feb 4, 2016 at 5:08 PM, gottelt <
<email address hidden>> wrote:

> New question #284585 on Zim:
> https://answers.launchpad.net/zim/+question/284585
>
> Hi,
> it seem that there are recent changes in how templates for the HTML export
> are defined and / or used.
> I have template that worked well with zim 0.60. Now I've updated to zim
> 0.65 and the same template gives me a html folder with empty files. This
> appears to be related to linking synthax: While in my past exports I find
> the subpages linked in the index file via <li><a
> href="./Folder/SubFolder/file.html... </a></li> (This also works when I
> export with the default tempplate)
> When I now apply my own template to export the links look like
> <li><a href="#Folder:SubFolder:File/"...</a></li>
>
> Can you help me with fixing this?
> Appreciating any help,
> Friedrich
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

gottelt (gottelt) said : #2

Hi Jaap,
thank you very much for your quick answer. I managed to adapt the ZeroFiveEight.html according to my needs.

As a suggestion: It would be nice if all templates could have a similar structure and some advisory comments. This would help newbees in css/html to create their own export styles based the ones shipped with zim.

Thanks again for your great work!
Friedrich