IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

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!

 
Reply to this topicStart new topic
> Show Month Of Entry In Calendar Caption, (on Individual archive as well as Date archive)
avoision
post 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!
Go to the top of the page
 
+Quote Post
avoision
post 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?
Go to the top of the page
 
+Quote Post
Annoying Old Guy
post Mar 5 2007, 05:25 AM
Post #3





Group: Members
Posts: 268
Joined: 2-January 03
Member No.: 6,736



Have you considered MTArchiveDate?
Go to the top of the page
 
+Quote Post
avoision
post 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$>">&laquo;</a></MTArchivePrevious> <$MTArchiveTitle$> <MTArchiveNext><a href="<$MTArchiveLink$>" title="<$MTArchiveTitle$>">&raquo;</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$>">&laquo;</a></MTArchivePrevious>
                        <$MTEntryDate format="%B %Y"$>
                        <MTArchiveNext archive_type="Monthly"><a href="<$MTArchiveLink archive_type="Monthly"$>" title="<$MTArchiveTitle$>">&raquo;</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?
Go to the top of the page
 
+Quote Post
PRO IT Service
post 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
Go to the top of the page
 
+Quote Post
avoision
post 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!

QUOTE (PRO IT Service @ Mar 6 2007, 03:02 AM) *
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.

QUOTE (PRO IT Service @ Mar 6 2007, 03:02 AM) *
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.

QUOTE (PRO IT Service @ Mar 6 2007, 03:02 AM) *
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.
Go to the top of the page
 
+Quote Post
avoision
post 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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 02.09.10 - 10:51 PM