Opened 9 years ago
Last modified 8 years ago
#12605 new enhancement
When used on a wiki page that matches the format string, set current day
Reported by: | Patrick Schaaf | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | WikiCalendarMacro |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
Here's a small enhancement patch. It adds one automatic (no configuration needed) feature:
When the macro is used on one of the calendar's by-date subpages, and the page was not reached by navigation (today not yet determined), the patch sets the current day to the subpages date itself.
Attachments (1)
Change History (5)
Changed 9 years ago by
Attachment: | WikiCalendarMacro-strptime.patch added |
---|
comment:1 Changed 9 years ago by
Note: first hunk in patch is unrelated to the change, and was already posted in reopened #9568
comment:2 Changed 9 years ago by
Application note:
I create two wiki pages:
- MyMeetingMinutes contains
'''some common heading, optionally''' [[WikiCalendar(wiki=/MyMeetingMinutes/%Y-%m-%d, base=MyMeetingMinutes)]] followed by some optional how-to text
- PageTemplates/MyMeetingMinutes contains
[[Include(MyMeetingMinutes)]] ... followed by whatever template I want for individual subpages
This way, each newly created subpage shows the content of the toplevel MyMeetingMinutes page, including the calendar, but with the patch proposed in this ticket, on the subpages, the subpage date will be set as the current date, which looks nice :)
And if I ever want to change the calendar options, I have one place to do it and all (existing) subpages will follow.
comment:3 Changed 9 years ago by
Owner: | changed from Steffen Hoffmann to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:4 Changed 8 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | accepted → new |
Set today when used on fitting subpage