Description

  1. 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=".... 

    1. with the correct current pagename or
    2. 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...

  2. 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

  1. Create a Wiki Theme with SideBar available

  2. Create a wiki page called "SideBar" (the content of the wikipagge "SideBar" will be displayed now on every wiki page (additional))

  3. Put now the MonthCalendar Macro into SideBar and browse to another side (e.g. StartSeite).

  4. Try to use the navigation of the MonthCalendar Macro (next month, next day, etcetear) in your sidebar

  5. 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

Component selection

Patches

MonthCalendar-3.patch

<!> 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


CategoryMoinMoinPatch

MoinMoin: MoinMoinPatch/1.9 MonthCalenderAndSidebar (last edited 2014-03-10 12:19:23 by 37-5-232-12-dynip)