Description
Fixing Links
If you use the SideBar function (Link) in your MoinMoin Theme and want display the Macro MonthCalendar in your Sidebar, then the links for next/last month (or year) are not working correctly. Because the Macro will rendered the links always with the origin (sidebar) page name. It should render the links in the <a href="....- with the correct current pagename or
just only the parameters (e.g. NOT /MoinMoinChat/Logs/moin-dev?calparms=MoinMoinChat/Logs/moin-dev,2010,8,0,0,,, }} ONLY {{{?calparms=MoinMoinChat/Logs/moin-dev,2010,8,0,0,,, ), this is what my patch will do...
Fixing Monthcalendar View
Another annoying point was, that if you click on a day in your monthcalendar (in your sidebar!), the link e.g. /MoinMoinChat/Logs/moin-dev/2009-09-02 will just open the wanted page, but the monthcalendar (in your sidebar!) gets then reseted to the "today" date and not the current where you was viewing (before your clicked). The macro should add the current used calparms to every link ( NOT /MoinMoinChat/Logs/moin-dev/2009-09-0 BUT /MoinMoinChat/Logs/moin-dev/2009-09-0?calparams=MoinMoinChat/Logs/moin-dev,2010,8,0,-11,,,
-- MarcelHäfner 2010-08-23 11:18:47
Steps to reproduce
Create a Wiki Theme with SideBar available
Create a wiki page called "SideBar" (the content of the wikipagge "SideBar" will be displayed now on every wiki page (additional))
Put now the MonthCalendar Macro into SideBar and browse to another side (e.g. StartSeite).
Try to use the navigation of the MonthCalendar Macro (next month, next day, etcetear) in your sidebar
Reslt: a Mouseclick on the Link, will always the "SideBar" wikipage displayed, and you will browse/go from the wiki page "StartSeite" to "SieBar", but the behavior should be, that you stay on same page.
Example
- not yet available
Component selection
- Macro/MonthCalendar.py
Patches
Just made this for my new MoinMoin 1.9 theme, so not realy big testing was done. But I guess some other dudes with sidebar enabled and monthcalender included will face similary problems...
Discussion
Plan
- Priority:
- Assigned to:
- Status: