Re: [Zim-wiki] Getting the full page index when export to html

2017-02-05 Thread Paulo van Breugel

Hi Alex,

Thanks, that was helpful. When running, I get the error message that the 
'page' parameter (in index()) isn't valid. However,


[% index(collapse,False) %]

did the trick for me. Jaap, perhaps something to add to the page as 
explicit example to the help file?


Paulo


On 04-02-17 22:26, Alex Ivkin wrote:

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



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Getting the full page index when export to html

2017-02-04 Thread Alex Ivkin

  
  
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
http://know.ivkin.net
  
  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.
  
  
  Alex





  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
  


  
  Hi, 
  
  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.
  
  Paulo
  
  
  
  
  
  ___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp



  


___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp