Help - Search - Members - Calendar
Full Version: Calendar displaying 1 post
Movable Type Community Forum > Additional Resources > Tips and Tricks
Jarod
Well, that's it. I've been trying to modify the IfAnyEntry option in the MTEntries section and changin the lastn="1" for days="1" or lastn="10" but on the calendar they show up more than a number, I mean if the 12nd there are 2 posts there will be two 12 on the calendar.
I've tried to search "calendar" on the forum and found some things but not the solution for this.
If anybody can help or tellme if i've passed by something in the forum or manual...
Thanks in advance.
maddy
QUOTE (Jarod @ Apr 13 2004, 08:31 PM)
I mean if the 12nd there are 2 posts there will be two 12 on the calendar.

So, what do you actually want to show there? Are you just wanting to have the date link through to a page containing all the entries for that day, or something else? smile.gif
Jarod
Well, that's what i want, to click on a day and show all the entries of that day. Am I asking something too hard? or too easy? :-) (Damm my english, the day I do a question and people understand me first time I will open a champagne bottle).wink.gif
colburn
I use the calendar feature to run an events calendar. I've set it so that it archives listings on a weekly basis and the calendar links are to that week's archive. When the link is followed it jumps to that day's events -- showing them in context of the rest of the week.
drouse
You want the reader, when they click on a day, to be taken to a page with all of that day's entries -- correct?

Do you have daily archives? You can have calendars that point to daily archive pages, but only if you have configured MT to build them. I don't think MT's default configuration uses them.

For example:

This calendar links to daily archive pages

On this site, the archive file template for "Daily" is

CODE
<$MTArchiveDate format="%Y/%m/%d"$>/index.shtml


And the calendar code for each day is

CODE
<MTCalendarIfEntries>
    <MTEntries lastn="1">
 <a href="<$MTArchiveLink archive_type="Daily"$>"><$MTCalendarDay$></a>
    </MTEntries>
</MTCalendarIfEntries>


This site isn't a super good example, as we have four layers of archive templates: the main archive template, a date-based archive, a day-based archive and an individual archive.

Everything is done with MT, of course, but it isn't a standard setup. But hopefully that gives you some hints on how to make it work for your site.
Jarod
Thanks coldburn, but they need to be daily archives.
Gonna go with your option drouse. I was afraid I had to do something like that but wanted to ask before if there was a easier way to do it.

Many thanks both ;-)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.