Friday, 21 October 2016
  3 Replies
  1.5K Visits
0
Votes
Undo
Hi,

by using the module "latest events" i have to create an if loop to separate the two categories of my events by different csss classes. But I don't get the right syntax for if statement.
The events are listed in an "foreach"-loop. In that loop I want separate all events with Categorie-ID "12" with an special CSS class. Is there anyone with an idea?


if (MISSINGSYNTAX == 12)
{
$eventrow = '<tr><td class="specialcss" style="'.$dst.'">%s'."</td></tr>\n";

}
else
{
$eventrow = '<tr><td class="mod_events_latest" style="'.$dst.'">%s'."</td></tr>\n";
}

THX
Monday, 24 October 2016 07:29
·
#177498
Accepted Answer
0
Votes
Undo
Hello,

You would need:


$dayEvent->catid == 12


Many thanks
Tony
Monday, 24 October 2016 07:29
·
#177498
Accepted Answer
0
Votes
Undo
Hello,

You would need:


$dayEvent->catid == 12


Many thanks
Tony
Monday, 24 October 2016 08:14
·
#177509
0
Votes
Undo
That's it! Awesome.

Many Thanks
Monday, 24 October 2016 10:08
·
#177521
0
Votes
Undo
You are very welcome.
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.