Re: [Zim-wiki] Ecodiv template

2017-02-09 Thread Paulo van Breugel
I actually seem to want the opposite, I want the whole tree, and not 
only the sub-pages of the active branch. The latter is the default, but 
one can override this with [% index(collapse,False) %]. When using that, 
I am getting the warning as you, but it works nonetheless.


Sorry I can't be of more help, hopefully somebody on the email list can 
further help you out.


Paulo



On 09-02-17 17:20, Marcio Segura wrote:

Hi Paulo,

Thank you for your replying.
Both of your syntaxes are reproved by the "exporter" with the message 
"WARNING: No such parameter: collapse". Looking to the template's 
manual I think the syntax would be something like:

[% index(,FALSE,FALSE) %]
But it's not clear what we can put on "". I tested "TRUE" and 
"FALSE", ":", "Path(':')", "page", "path", "root", ":index"... and 
none of them worked.
I just want that my root pages do not appear in the index built by 
this command.

Thank you,
Marcio




*De:* Paulo van Breugel 
*Para:* Marcio Segura 
*Cc:* zim-wiki email list 
*Enviadas:* Quinta-feira, 9 de Fevereiro de 2017 7:42
*Assunto:* Re: Ecodiv template

Hi Marcio
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.


Rgds,

Paulo



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 
your template.
 I don't want to bore you but if you help me I will be very grateful 
to you.
 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 
the defaults):


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,
  Marcio Segura







___
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] Ecodiv template

2017-02-09 Thread Marcio Segura
Hi Paulo, 
Thank you for your replying.Both of your syntaxes are reproved by the 
"exporter" with the message "WARNING: No such parameter: collapse". Looking to 
the template's manual I think the syntax would be something like:
[% index(,FALSE,FALSE) %] 
But it's not clear what we can put on "". I tested "TRUE" and "FALSE", ":", 
"Path(':')", "page", "path", "root", ":index"... and none of them worked.
I just want that my root pages do not appear in the index built by this 
command.Thank you,Marcio


  De: Paulo van Breugel 
 Para: Marcio Segura  
Cc: zim-wiki email list 
 Enviadas: Quinta-feira, 9 de Fevereiro de 2017 7:42
 Assunto: Re: Ecodiv template
   
 Hi Marcio 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.
 
 Rgds,
 
 Paulo
 
 
  
 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 your template.   
 I don't want to bore you but if you help me I will be very grateful to you.    
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 the defaults): 
      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,     Marcio Segura 
   
 
 

   ___
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] Search by time

2017-02-09 Thread Jaap Karssenberg
There is a "recent changes" dialog in the latest version - you can find it
in the "Search" menu.

Currently it is limited to showing the last 20 pages, but I would suggest
patching that dialog if you want to add more functionality.

-- Jaap

On Thu, Feb 9, 2017 at 9:26 AM Amir Baghban  wrote:

> I think this is a missing feature and it would be great sometime to have a
> plugin for it. Such a plugin would sort the pages based on time in a pane
> next to index pane.
>
> For now I have written a python script that I run it using "custom tools"
> feature of zim. This script creates links to the last n page and prints
> them in the open page.
> You can see it here:
> https://github.com/arbasli2/Zim-Scripts
> I have tested it on both Linux and windows.
>
> Best
> Amir
>
> On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo  wrote:
>
> Can I search my notes by time? For example, listing those notes
> modified in the last 3 months
> Thanks
>
> --
> Agustin Lobo
> aloboa...@gmail.com
>
> ___
> 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
>
___
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] Ecodiv template

2017-02-09 Thread Paulo van Breugel

Hi Marcio

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.


Rgds,

Paulo



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 
your template.
   I don't want to bore you but if you help me I will be very grateful 
to you.
   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 
the defaults):


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,
Marcio Segura



___
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] Search by time

2017-02-09 Thread Amir Baghban
I think this is a missing feature and it would be great sometime to have a
plugin for it. Such a plugin would sort the pages based on time in a pane
next to index pane.

For now I have written a python script that I run it using "custom tools"
feature of zim. This script creates links to the last n page and prints
them in the open page.
You can see it here:
https://github.com/arbasli2/Zim-Scripts
I have tested it on both Linux and windows.

Best
Amir

On Wed, Feb 8, 2017 at 6:25 PM, Agustin Lobo  wrote:

> Can I search my notes by time? For example, listing those notes
> modified in the last 3 months
> Thanks
>
> --
> Agustin Lobo
> aloboa...@gmail.com
>
> ___
> 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