zim-wiki team mailing list archive
Mailing list archive
Re: Ecodiv template
I incidently had a similar question to the Zim-wiki email list (you best
ask questions on that list).
I am not completely sure what you want, but the index function works
using the following syntax:
[% index(collapse,False) %]
[% index(ignore_empty,False) %]
So collapse and ignore_empty both can be False or True. I did not find
out the syntax if you want to use this with the 'section' parameter.
On 08-02-17 15:53, Marcio Segura wrote:
Hi Paulo, how are you?
I am brazilian and I use zim and a derivative of your good template
for my sites. I found your contact by a friend that also uses Zim and
I don't want to bore you but if you help me I will be very grateful
In the template we have a function called [% index() %]. So I read
in the http://www.zim-wiki.org/manual/Help/Templates.html that this
function can be configured to another behaviors and I wanted it to
create the index after the first page, doesn't showing other pages in
the root because my site needs to have visible pages in the index and
other pages only accessible by a especifical link.
I tried some configuration and none makes any difference, like
"index(TRUE,TRUE,TRUE)", "index(FALSE,FALSE,FALSE)" and so on...
This is the description of this function (for that who don't use
index(section, collapse, ignore_empty)
Creates a page index of the set of pages being exported.
section: the starting page of the index - defaults to the top level (":")
collapse: if TRUE only branches related to the current page are
visible, if FALSE all branches are visible - defaults to TRUE
ignore_empty: if TRUE empty pages are ignored — defaults to TRUE.
See "section" and "collapse", they seem that will make it but I
don't see any difference. Maybe I am missing some thing.
Thanks a lot,