On Thu, Nov 6, 2008 at 7:51 PM, Michael Herstine <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
> Hi Mirko,
>
>> [snip]
>>
>> Within emacs, it is straightforward to move from one day-page to the next.
>>
>> However, when viewing the day pages are published in html, one would have to
>> explicitly open the previous/following page in the browser.
>>
>> Is it possible to publish pages with automatic links to the next and
>> previous published day pages?
>
>
> If I understand tou correctly, I accomplish this using a little lisp:
>
> (setq planner-day-page-template
>        "\n<verse>\n[[<lisp>(planner-date-to-filename 
> (planner-calculate-date-from-day-offset (planner-filename-to-calendar-date 
> (planner-get-current-date-filename)) -1))</lisp>][<]]   -  [[WikiHome][Home]] 
>  -   [[<lisp>(planner-date-to-filename 
> (planner-calculate-date-from-day-offset (planner-filename-to-calendar-date 
> (planner-get-current-date-filename)) 
> 1))</lisp>][>]]\n</verse>\n\n<comment>\n[[lisp://(planner-goto 
> (planner-date-to-filename (planner-calculate-date-from-day-offset 
> (planner-filename-to-calendar-date (buffer-file-name)) -1)))][yesterday]]   
> [[lisp://(planner-goto (planner-date-to-filename 
> (planner-calculate-date-from-day-offset (planner-filename-to-calendar-date 
> (buffer-file-name)) 1)))][tomorrow]]\n</comment>\n\n* Tasks\n\n\n* 
> Diary\n\n\n* Notes")
>
> The first set of links will be published in HTML, the second give me
> forward & backward links in muse-mode.
>
> HTH,
>
Michael,

that is indeed what I was looking for.  It is not the perfect solution
(I mentioned, the perfect one is where the browser would look for the
previous page), but is good enough for now.  If I hit upon the perfect
one (which would involve java-scripting), I will post it.

Thank you very much,

Mirko

_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to