I'm using the latest events module, and I've almost got it displaying my data how I would like it to.
Some of the events that I have entered into the events component are single day events which I would like to have the event module display the event like this:
November 22
National Family Volunteer Day
Right now I am using the custom format string of
Code:
${eventDate(F j)}-${endDate(j)}<br />${title}
which displays all events like this:
November 22-22
National Family Volunteer Day
It should just be a simple if statement like
PHP Code:
if($eventDate == $endDate)
$evalString = '"${eventDate(F j)}<br />${title}"';
else
$evalString = '"${eventDate(F j)} - ${endDate(j)}<br />${title}"';
but I can't figure out how to get it to work. Putting that code in the custom format string displays the if statement, and I can't seem to figure out how to get it working on the mod_events_latest.php file.
Any suggestions on how to accomplish this?
Brady
PS - I'm using the following config:
Mambo 4.5.1a Stable
Events v1.1
events_latest 1.4