[pmwiki-users] WikiCalendar config

John Rankin john.rankin at affinity.co.nz
Wed May 11 23:56:16 CDT 2005


On Thursday, 12 May 2005 3:33 AM, malexism <malexism at free.fr> wrote:
>Hello,
>
>Calendar is a very nice cookbook. Usefull !

Thank you.
>
>
>i don't understand this option :
>
>"This is the default home of each collection (Group) of date pages.
>SDV($wikilog_home_page,FmtPageName('$Group',$pagename));"
>
>Default home page for a group named "Agenda" is "Agenda.HomePage". How 
>do i use this option, and why ?

In various places, the calendar script inserts navigation links to the 
group's home page. By default, the script sets this to Agenda.Agenda.
So if you want to make the home page Agenda.HomePage, you need to set

$wikilog_home_page = 'HomePage';

This dates from a much earlier PmWiki version. PmWiki now looks first
for Group.Group then Group.HomePage, so I think I could probably tidy
this bit of code.

>
>Is there a way to use (:wikilogbox:) for every dates (not only
>for today)

An excellent question. We could add [yyyy]-[mm]-[dd] fields to
the form. If blank, use today's date; if supplied, post to the
supplied date. That should be fairly easy to add. I'll have a 
look. And the value could default to today's date.
>
>Does this cookbook will change in the near futur, and if so, will 
>existing pages stay compatibles with the new Calendar ?

It continues to have minor enhancements. As long as I don't change
the page naming convention, it will continue to work. If I did
change the page naming convention, I would make it configurable,
so the script would be back compatible.

For example, a case can be made for using ISO date format for
page file names, ie yyyy-mm-dd rather than yyyymmdd.

The current version is compatible with pages created 3 years ago.

So I think it is safe to say that this will continue to work, for
a while at least.
>
>(excuse my english) Thanks.
>marc
>


-- 
JR
--
John Rankin






More information about the pmwiki-users mailing list