At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!
![]() ![]() |
Mar 4 2007, 05:14 PM
Post
#1
|
|
|
Group: Members Posts: 22 Joined: 22-February 07 Member No.: 39,313 |
Hello all -
I've successfully gotten the calendar to display dates based on the month of the entry being viewed (woot!). However, the one thing that I can't seem to tweak is the caption that displays the month. While the dates for, say, February 2007 link correctly... the caption still displays the current month. I've scoured the forum, and while I did find one link: http://forums.sixapart.com/index.php?showtopic=23457 this relates mostly to Individual archives. Changing <caption><$MTDate format="%B %Y"$></caption> to <caption><$MTEntryDate format="%B %Y"$></caption> works for Individual archives. But I can't seem to do the same thing for the Date-Based Archive. Any and all advice would be greatly appreciated. This is one of the last techincal hurdles keeping me from officially re-launching. It's exciting and excruciating that I'm this close. Thanks for your time! |
|
|
|
Mar 4 2007, 05:40 PM
Post
#2
|
|
|
Group: Members Posts: 22 Joined: 22-February 07 Member No.: 39,313 |
FWIW, this is the error message I get when trying to build:
QUOTE You used an 'MTEntryDate' tag outside of the context of an entry; perhaps you mistakenly placed it outside of an 'MTEntries' container?
|
|
|
|
Mar 5 2007, 05:25 AM
Post
#3
|
|
|
Group: Members Posts: 268 Joined: 2-January 03 Member No.: 6,736 |
Have you considered MTArchiveDate?
|
|
|
|
Mar 5 2007, 09:51 PM
Post
#4
|
|
|
Group: Members Posts: 22 Joined: 22-February 07 Member No.: 39,313 |
Thank you, Annoying Old Guy!
I took it a few steps beyond simply displaying the month of the entry being viewed. I was able to successfully implement this tweak from The Girlie Matters. So! Now I'm all turned around again. On my date-based archives, I'm able to display the current month being viewed, along with "previous" and "next" buttons, using this code: CODE <MTArchivePrevious><a href="<$MTArchiveLink$>" title="<$MTArchiveTitle$>">«</a></MTArchivePrevious> <$MTArchiveTitle$> <MTArchiveNext><a href="<$MTArchiveLink$>" title="<$MTArchiveTitle$>">»</a></MTArchiveNext> Now, all I have left to do is to get the same thing to happen on my Individual archive pages. Here's the code I'm using, which gets me somewhat there: CODE <MTArchiveList month="this" archive_type="Monthly" lastn="1"> <MTArchivePrevious archive_type="Monthly"><a href="<$MTArchiveLink archive_type="Monthly"$>" title="<$MTArchiveTitle$>">«</a></MTArchivePrevious> <$MTEntryDate format="%B %Y"$> <MTArchiveNext archive_type="Monthly"><a href="<$MTArchiveLink archive_type="Monthly"$>" title="<$MTArchiveTitle$>">»</a></MTArchiveNext> </MTArchiveList> <$MTEntryDate format="%B %Y$> allows me to display the month of the entry being viewed. But how do I go about getting the previous and next buttons linked appropriately (to the previous and next months)? This, I think, is my last hurdle. I'd love any additional insight or advice on what I need to do. Is it as simple as syntax? I've been hunting around sixapart's user guide, but haven't found the answer yet. I have this nagging suspicious it's an easy fix. Anyone? |
|
|
|
Mar 6 2007, 01:02 AM
Post
#5
|
|
|
Group: Members Posts: 422 Joined: 20-August 06 From: Romania, E.U. Member No.: 36,509 |
Hello avoision,
The way I've managed to do this for a customer (http://www.babypips.com/blogs/) was to setup a calendar as date-based archive and then integrate it across various templates On the home page I'm displaying the current month calendar On individual articles I am displaying the entry month calendar On Date-Based archives I am displaying the month calendar Happy blogging, Mihai Bocsaru -------------------- Would you like to check how Movable Type v4.x is taking shape? Go and try it out live yourself!
Always the latest version! Currently Movable Type v4.23 Free Demo - http://www.movabletype4.org/ Mihai Bocsaru, MovableType Consultant http://www.pro-it-service.com/ Professional Consultancy and Advice on Setting Up Movable Type Driven Web site Applications Solutions for: Movable Type Installation, Movable Type Upgrade, Coding Movable Type Templates, Movable Type Extra Facilities, Movable Type Search Engine Marketing, Movable Type Custom Programming, Optimizing Movable Type Templates to Reduce Server Usage and Rebuild Times, Professional Movable Type Hosting |
|
|
|
Mar 6 2007, 05:59 AM
Post
#6
|
|
|
Group: Members Posts: 22 Joined: 22-February 07 Member No.: 39,313 |
Hello PRO IT Service,
It sounds like we have a very similar setup! On the home page I'm displaying the current month calendar I am doing this as well. I also have code that creates a link to the previous month.On individual articles I am displaying the entry month calendar I am doing this as well. I also have code that creates links to the previous and next months.On Date-Based archives I am displaying the month calendar I am doing this as well. My question is: how do I create "previous" and "next" buttons here? I assume the code would be similar to what I used on my individual archives, with a slight change in syntax.
|
|
|
|
Mar 8 2007, 08:29 PM
Post
#7
|
|
|
Group: Members Posts: 22 Joined: 22-February 07 Member No.: 39,313 |
For anyone keeping score... I've given up on the calendar approach. In fact, I've scrapped having a calendar at all on my blog.
There may be a way to what I'm after accomplished, but so far I haven't found the way. |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 02.09.10 - 10:51 PM |