[pmwiki-users] WikiCalendar date markup

Nate Cull nate at natecull.org
Fri May 6 22:48:04 CDT 2005


On Fri, 2005-05-06 at 12:04 -0400, Jason Counsel wrote:
> I think some of your concerns might be met by setting the configuration
> settings in config.php:
> 
> // This configures how dates are presented.
> // 0 - american style, 11/17/2002
> // 1 - european style, 17.11.2002
> // 2 - international style, 2002-11-17
> SDV($calendar_datestyle,1);
> SDV($space_date_titles,1);
> SDV($SpaceDateString,'-');


I haven't changed any of these from defaults. A little bit of tinkering
so far hasn't produced anything remotely similar to what I want, but
I'll keep trying.


> 
> (I'm not exactly sure what would be best).  But I see that in my
> calendar it displays "Thursday, 23 June 2005" in my calendar entry...
> if that's what you're looking for it shouldn't be too hard to
> automatically make this the link text.  If I figure it out I'll let you
> know.

Can you tell me what settings you've used for these variables to get
that effect? I'm certainly not getting that, and it's half of what I
want.

> 
> Jason C.
> 
> 
> --- Nate Cull <nate at natecull.org> wrote:
> > I'm using the WikiCalendar recipe with beta36, and it's working fine,
> > but I'm a little confused as to how the date markup is supposed to
> > work.
> > 
> > Currently, clicking on a calendar date creates a page as an eight
> > digit
> > code, ie, Calendar/yyyymmdd. 
> > 
> > When you view a calendar page, the title shows as the date short
> > form,
> > eg, yyyy-mm-dd.
> > 
> > Any occurrences of a date short form (*not* an eight digit code as
> > used
> > in a link) get changed to a date long form, ie, dd Monthname, yyyy. 
> > 
> > But it doesn't do this in the title of a calendar page, the only
> > place
> > where a short-form date is automatically generated. In other words,
> > the
> > date long form never gets displayed in any pages generated normally
> > during the use of WikiCalendar. The only way to get a date long form
> > displayed seems to be to manually enter a short form date
> > (yyyy-mm-dd)
> > into the text of a page, like so:
> > 
> > [[Calendar/yyyymmdd|yyyy-mm-dd]]
> > 
> > and then the markup picks up on the dashes and displays that
> > short-form
> > date as a long-form date.
> > 
> > This seems to kind of defeat the whole purpose of the date long form
> > markup. I don't get what it's there for if I have to manually retitle
> > the links to each date I enter anyway. 
> > 
> > What I want is: whenever I make a reference to a date (link to a page
> > [[Calendar/yyyymmdd]]) I would like that link displayed as a
> > human-readable date rather than the cryptic eight digit number. Is it
> > possible to do this with WikiCalendar as designed, or do I need to
> > write
> > my own custom date-reference markup on top of what WikiCalendar
> > provides?
> > 
> > 
> > 
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://pmichaud.com/mailman/listinfo/pmwiki-users
> > 
> 
> ______________________________________________________________________ 
> Post your free ad now! http://personals.yahoo.ca
> 




More information about the pmwiki-users mailing list