btrott
May 29 2002, 10:29 AM
I'm afraid this isn't currently possible--I'm not even sure where we'd have to change this to make it work, or how possible it is. I will try to play around with it a bit (it's been on the todo list for a while), particularly since we did just make a change to calculate the weekday offset internally as of 2.1.
btrott
May 30 2002, 10:06 AM
The start of the week is always Sunday--is that what you meant? There is a function wday_from_ts in lib/MT/Util.pm that determines the day of the week from a timestamp. For example, given a year 2002, month 05, and day 30, it determines the day of the week that that day falls on, in numeric form (0 is Sunday). That would need to be modified to adjust based on the start of the week you wanted, I think, so that 0 would instead be Tuesday, for example.
quadsk8
May 31 2002, 03:54 AM
I tried this:
CODE
<MTCalender month="this-1">
but also (just trying)
CODE
<MTCalender month="<$MTDate format'%Y%m'>-1">
laughingmuse
May 29 2002, 09:01 AM
I've recently moved from using one journalling script to Movable Type. I now want to put auto-redirects in place on my old blog archive pages to send people, particularly search engine visitors, to my new blog pages. Easy enough to do - I can just do that manually, changing the old archive pages one by one.
However, my current seven-day cycle for weekly archives begins on Sundays, and my old seven-day cycle begin on Tuesdays...so there's that annoying two-day difference between old and new archives. The redirects won't match up in an exact week-to-week correspondence.
Is there a way I can reset the start date of a weekly cycle? I know it sounds incredibly small, but I'd really like to have these one-to-one correspondences, especially since I'm completely losing the unique KEYWORD and DESCRIPTION tags in the weekly archives.
Thanks!
laughingmuse
May 29 2002, 11:03 AM
Thanks for the answer, Ben.
Just for my own curiosity, how is the week-start determined now? Is the day hardcoded into the scripts, or does the week "start" when a particular blog is "created"? Or some other mechanism?
quadsk8
May 31 2002, 03:51 AM
Hello Ben,
In Europe we use a different order of naming days, (31 mei 2002) which can be set with the Date Tag Format, but we also are used to a week starting on Monday.
Is that a do-able-feature? if so this is my request...
And while I'm on the subject:
I would like a calender with 3 months: previous, this month and next.
I tried but this seems not to be numeric. Is there a way to do this?
If not can it be my other feature request?
Thanks,
Lawrence
btrott
May 31 2002, 11:26 AM
No, there isn't a way to create such a calendar without hard-coding the months that you want, I'm afraid.
enscyber
Sep 27 2003, 09:54 PM
QUOTE (btrott @ May 30 2002, 06:06 PM)
The start of the week is always Sunday--is that what you meant? There is a function wday_from_ts in lib/MT/Util.pm that determines the day of the week from a timestamp. For example, given a year 2002, month 05, and day 30, it determines the day of the week that that day falls on, in numeric form (0 is Sunday). That would need to be modified to adjust based on the start of the week you wanted, I think, so that 0 would instead be Tuesday, for example.
i, too, require archiving weekly but starting on a different day. i looked into util.pm but am having a difficult time determing what to modify to make this happen.
any help would be appreciated ...
enscyber
Oct 7 2003, 12:30 PM
well unfortunately, it looks like nobody else can give me help on this. i ended up getting this to work and having it archive weekly each friday ( as each new comic is posted on frist at
http://www.ok-cancel.com ) and getting everything to work out. the modification is indeed in util.pm in the wday_from_ts function.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.