> I think to get pagelist to output a calenderlist format would be a > good step forward. > > Hans
As usual, Hans has a great idea. Very intriguing. It occurred to me we only really need to pass two parameters to the pagelist: the start day (of the week) for the month and the number of days in the month. If you know that, everything else in the pagelist/calendar can be constructed by conditionals. Suppose you had one group for the actual monthly calendars with names like 2007-03 each with a group header/footer that called the pagelist...., and then another group with pagenames like 2007-03-21 for the individual items... To pull up a calendar for 2007-03, you create a page variable function which takes the page name and converts it using strftime to return the day of the week for March 1, 2007. That gives you the first parameter. To get the second parameter, you simply add one month to the timestamp and subtract the number of days. There may be some simpler way. Then on any calendar (month) page you would pull up a template with those page variables passed to it. Using various conditionals or a little math function that recalculates the number of each day, and conditionals at the end to know where to stop. (28, 30, 31), you could get your calendar. Of course if you are wanting to show all the items for that day on the page you have the problem of a pagelist within a pagelist, (perhaps include a page with pagelist on it?), or you use Fox/ZAP to put all the elements on one page, rather than separate pages. I'm just throwing this out as an idea, because doing a calendar as a pagelist would be very powerful. Seems rather doable... Cheers, Dan _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
