[EventCalendar] Help with putting month link in event list
Sergio Alvarado
sergiojalvarado at gmail.com
Fri Sep 28 20:20:18 UTC 2007
I have successfully set up my homepage to show a list of up-coming events
using the EventCalendar 3.1.1.rc1, "ec3_get_events()" template tag. Below
is my code (very similar to the sample in the "ec3_get_events()" template
tag page.
<?php
ec3_get_events(
20, // limit
'%DATE%: <a href="%LINK%">%TITLE%</a>', // template_event
'', // template_day
'j', // date_format
'<h2>%MONTH%</h2>' // template_month
);
?>
What I need is to place a link to the month archives page, like in the Month
of the "ec3_get_calendar." so that when someone clicks on the month they
will be taken to archives page for that specific month.
i.e. if they click on the header "October 2007," they will be taken to the
link http://my_domain.com/?m=200710 , if they click on the header "November
2007," they will be taken to the link http://my_domain.com/?m=200711 , and
so on.
Does anyone have any idea how I can accomplish this. I tried putting in "<a
href="month_link()"><h2>%MONTH%</h2></a>" this did not work.
Thanks in advance to anyone who can help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070928/c6a97ef7/attachment.htm
More information about the EventCalendar
mailing list