steve at fell-services.net
Fri Jun 15 05:14:59 CDT 2007
I'm afraid that that didn't work: but was it was nonetheless very
To explain: I tried the EditTemplate suggestion, but it didn't work.
Looking at the page source I found that the blank days had a class of
'nonexistent-date', so I thought that all I'd need to do was find that
class in cookbook/wikilog.php and add in the template link. However, it
occurred to me that I could just as easily change the link so that it
went to a suitable warning page, I could avoid giving giving logged-in
users a blank page to edit AND avoid throwing an unexpected password
challenge at readers who weren't logged in.
$WikiDateCreateFmt = "<a class='nonexistent-date' rel='nofollow' " .
The only thing I needed to do then was change Calendar.Calendar to:
(:if authid :)
and Calendar.NonExistentDate to:
!!! There are no events today.
(:if authid :)
Hoping that this may be of use to others....
> > I've just installed WikiCalendar, and it looks really good (to the
> > extent that I may well be able to unglue blosxom from my site - if I can
> > work out how to do things like display only the N most recent entries),
> > but there's just one thing....
> > Clicking on a day with no calendar entry takes me to an edit screen for
> > that date. This is fine for the smarter users, who will either put in
> > something in more or less the right format, or speedily retreat to the
> > dropdown and form input method, but could confuse our less techie
> > people, and means that users who aren't logged in are presented with a
> > password challenge.
> > Is there anything I can change so that a logged-in user would see a
> > template on the lines of:
> > !!!!Event title
> > Your text here
> > =>'-Posted $date, at $time by [[~$user]]-'
> I just went through this myself yesterday :)
> You can make a page as a template. Say, something like.. Site.SiteCalendar and
> fill it with the content you want. Use this page as a template so when
> someone starts a new event, the template content is loaded into a new page
> ready for the author to edit.
> Have a look at:
> > And a non-logged in user wouldn't see links on those days at all? (I
> > guess it'd be something to do with (:if authid:)... )
> > Thanks
> > Steve
> Ian MacGregor
Steve Glover at email: steve at fell-services.net
SDSS, EDINA, University of Edinburgh, tel: +44 (0)131-650 2908
Causewayside House, 160 Causewayside, fax: +44 (0)131-650 3308
Edinburgh EH9 1PR mobile: +44 (0) 7961 446 902
More information about the pmwiki-users