Help - Search - Members - Calendar
Full Version: Highlight the current date in the calendar
Movable Type Community Forum > Additional Resources > Tips and Tricks
kadyellebee
Have you checked out the manual's calendar template info?  It has a sample calendar that does highlight the current day.

Also, Dawn put together a great template for a calendar that does this.

I've noticed, however, that the current day is only highlighted if you have already posted something or rebuilt already on the current day.  This is because the code doesn't have a chance to make the choice until you tell it the date!

Hope this helps,
Kristine
jcris
Hey, does anybody know how to just bold the current day if there's been an entry posted? I tried the MTCalendarIfToday inside the a href tag, but that bolded every date link.
jcris
Thanks girlie! I think I got it to work by just substituting the bgcolor in the default calendar code to a style attribute.
nheo
wats wrong with this?

CODE
<MTCalendarIfEntries><MTEntries lastn="1">


<MTCalendarIfToday><div class="calendartoday"></MTCalendarIfToday><a href="<$MTEntryLink$>"><$MTCalendarDay$></a>
<MTCalendarIfToday></div></MTCalendarIfToday>


</MTEntries></MTCalendarIfEntries>


it just highlights all the days i have post on. thanks.
PrincessElena
Hiya,

I was just wondering how to highlight the current day in my calendar? I have seen it a lot but on mine it doesn't show. What would I need to do? Thanks a million!
PrincessElena
Okay I looked in there, I am really ditzy! Thanks for all the help! I changed it now. smile.gif Thank you again!
girlie
Does this work:

CODE
<MTCalendarIfEntries><MTEntries lastn="1">
<MTCalendarIfToday><b></MTCalendarIfToday><a href="<$MTEntryLink$>"><$MTCalendarDay$></a>
<MTCalendarIfToday></b></MTCalendarIfToday>
</MTEntries></MTCalendarIfEntries>


??
girlie
Ahhh, yes..that too!!

tongue.gif
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-2010 Invision Power Services, Inc.