Opened 18 years ago
Closed 12 years ago
#562 closed enhancement (duplicate)
[Patch] Allow multiple navigation-synced instances on same page
Reported by: | taa | Owned by: | Steffen Hoffmann |
---|---|---|---|
Priority: | normal | Component: | WikiCalendarMacro |
Severity: | normal | Keywords: | multiple instances navigation-sync |
Cc: | taa@…, Ryan J Ollos | Trac Release: | 0.9 |
Description
It would be useful to display two instances of the calendar on the same page; e.g., current month and next month, or current month and previous month, or a combination of both.
Attachments (2)
Change History (11)
comment:1 Changed 18 years ago by
Owner: | changed from Matt Good to anonymous |
---|---|
Status: | new → assigned |
Changed 18 years ago by
Attachment: | WikiCalendar.py added |
---|
New patched version of WikiCalendar with year and month increment/decrement support
comment:2 Changed 15 years ago by
Summary: | Allow increments and decrements in year and month views. → [Patch] Allow increments and decrements in year and month views. |
---|
comment:3 Changed 15 years ago by
Owner: | changed from anonymous to Ryan J Ollos |
---|---|
Status: | assigned → new |
comment:4 Changed 15 years ago by
Status: | new → assigned |
---|
comment:5 Changed 15 years ago by
Summary: | [Patch] Allow increments and decrements in year and month views. → [Patch] Allow two instances of the calendar on the same page |
---|
comment:6 Changed 14 years ago by
Keywords: | multiple instances navigation-sync added |
---|---|
Summary: | [Patch] Allow two instances of the calendar on the same page → [Patch] Allow multiple navigation-synced instances on same page |
Well, this is a nice suggestion indeed.
However, there exists a 'sister' plugin, WikiTicketCalendarMacro, that has been received considerable efforts to improve it for production, and I'm here to evaluate the possibility for incorporating key features of WikiCalendarMacro into it, even making it obsolete in the future.
With regards to #7564 I'd appreciate, if you could test the current version of WikiTicketCalendarMacro in your application as well and report back here. I can't make promises, but this might be a step towards finally solving this issue. Thanks for your patience and for still taking care.
comment:7 Changed 14 years ago by
Cc: | Ryan J Ollos added |
---|---|
Owner: | changed from Ryan J Ollos to Steffen Hoffmann |
Status: | assigned → new |
comment:8 Changed 14 years ago by
#8295 suggests a syntax for a calendar instance with offset to current time. I feel like this ticket is related, even more as I expect to have one hybrid Wiki(Ticket)CalendarMacro soon.
comment:9 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Sorry for not pushing this further on.
Please follow-up on #8295, that I'd like to keep open instead of this one, because I feel discussion on the feature has advanced a bit more over there. And certainly the development target is 0.11 these days, that is already rather aged on its own, because Trac 1.0 is out for many months now.
Proposed solution: allow the year and month parameters to have a sign. If a sign is explicitly specified, then treat the parameters and an increment or decrement according to the sign. If the sign is not used, then the parameter is used as the month or year value.
Support is also added for month > 12 by incrementing the year, and month < 0 by decrementing the year and adding 12 to the month value.
A patch is included below
.py