Paulo Van,

How'bout this?

                [% IF page.basename == "Catalog" %]
                    [% index(navigation.home,False) %]
                [% ELSE %]
                    [% page.content %]
                [% END %]
                [% IF page.basename == "Other" %]
                    [% index(page,False) %]
                [% END %]

I've built a template that uses that code. You can see it here

It looks like Wikipedia but is actually a statically generated html from a zim notebook.

I've done a bunch of patches to zim's code that I sent to Jaap that he was going to add to the latest build.


From: Paulo Van Breugel
Sent: Saturday, February 04, 2017 9:07AM
To: Zim-wiki Email List, Jaap Karssenberg
Subject: [Zim-wiki] Getting the full page index when export to html


I am using ZIM to create a website. When I want the menu with links to all exported pages, I can include [% index() %] in my export template.

However, the resulting menu only includes pages of the same level or higher. What I want is that each html page contains a menu list with all pages.

So, if the structure of my notebook is:

  • Page 1
  • Page 2
    • Page 2 a
    • Page 2b

They all should show, so on page one, instead of showing a menu with page 1 and 2 only, it should show a menu with all four pages (reason: I want to create a drop down menu, for which I need the full list of pages).

Any help would be greatly appreciated.


Mailing list:
Post to     :
Unsubscribe :
More help   :

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to