PDA

View Full Version : list mode


BigG
02-28-2009, 05:26 PM
Hi,

Am using the calendar in a joomla 1.5 environment. on www.stbrycekirk.org (http://www.stbrycekirk.org). I have a calendar on frontpage with a jumi module to show a list , this shows the next 1 event from a given category,



//SHOW LISTINGS MODULE
$LIST=1;
$noOld = 1;
$listEvents = 1;
$DF = "l jS M Y";
$template="modernsmalldate.php";
$showCat = a|2;
require("../calendar/calendar.php");


However, when it comes to the end of the month, it dont show any events, but if i move the month forward of the calendar it shows the first event for that month.

I tried changing the code to:


//SHOW LISTINGS MODULE
$LIST=1;
$noOld = 1;
$listEvents = 1;
$DF = "l jS M Y";
$template="modernsmalldate.php";
$showCat = a|2;
require("../calendar/calendar.php");
unset ($mo, $yr);



This makes no differnce

If i change the unset $mo, $yr;

this brings about a 500 server error,

I know you dont support for this with joomla, but any advice would be great

G

ve9gra
02-28-2009, 06:46 PM
Remove your unset, and add $listMonths = X, where X is the number of months ahead that the calendar should look in for an event. By default, it will only list the current's month events... and won't skip months, even with $listEvents=1. With $listMonths and $listEvents you should get what you're looking for.

BigG
03-01-2009, 11:37 AM
Hi,

Thank you for your reply.

Done what you said but worked still the same.

Just played about with the variable and changed the $listMonths to $listWeeks and it now shows the first event from todays date, rather than the first on the month shown on the calendar.

Perhaps you could explain why, as I really dont understand why.

Thanks

G

Brian
03-01-2009, 02:16 PM
Try adding $listMonths = 12; in there too. By default, listEvents only displays for the current month.

Also, make sure you have quotes around $showCat = "a|2";