Friday, 21 October 2016
  3 Replies
  1.3K 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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

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

You would need:


$dayEvent->catid == 12


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

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.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.