Opened 7 years ago
Closed 3 months ago
#562 closed enhancement (duplicate)
[Patch] Allow multiple navigation-synced instances on same page
| Reported by: | taa | Owned by: | hasienda |
|---|---|---|---|
| Priority: | normal | Component: | WikiCalendarMacro |
| Severity: | normal | Keywords: | multiple instances navigation-sync |
| Cc: | taa@…, rjollos | 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 7 years ago by taa
- Owner changed from mgood to anonymous
- Status changed from new to assigned
Changed 7 years ago by taa
New patched version of WikiCalendar with year and month increment/decrement support
comment:2 Changed 4 years ago by rjollos
- Summary changed from Allow increments and decrements in year and month views. to [Patch] Allow increments and decrements in year and month views.
comment:3 Changed 3 years ago by rjollos
- Owner changed from anonymous to rjollos
- Status changed from assigned to new
comment:4 Changed 3 years ago by rjollos
- Status changed from new to assigned
comment:5 Changed 3 years ago by rjollos
- Summary changed from [Patch] Allow increments and decrements in year and month views. to [Patch] Allow two instances of the calendar on the same page
comment:6 Changed 3 years ago by hasienda
- Keywords multiple instances navigation-sync added
- Summary changed from [Patch] Allow two instances of the calendar on the same page to [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 3 years ago by rjollos
- Cc rjollos added
- Owner changed from rjollos to hasienda
- Status changed from assigned to new
comment:8 Changed 3 years ago by hasienda
comment:9 Changed 3 months ago by hasienda
- Resolution set to duplicate
- Status changed from new to 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