By scolex on Tuesday, 08 December 2015
Replies 4
Likes 0
Views 1K
Votes 0
Hi,

I'm using the jLatestEvents modul on frontpage with two cateories for the dates (intern & public).
I need to have different backgrounds for each category, how can I do this?
If I can separate the categories by a css class, this wouldbe the best, but is this possible in any way?

Regards
Hello,

Please see:

https://www.jevents.net/frequently-aske ... at-strings

I would advise putting a div in the latest events module wrapping the custom format string. With an inline background style using the ${color} tag.

Thanks
Tony
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey,

thanks for the advise.
Works with the custom format string:

<div class="${category}">${startDate(%d. %b. %Y)}[!a:, ${startDate(%H:%M)}][m: - ${endDate(%d. %b. %Y)}]
${title}</div>


Is there a way to use the category-alias instead of category-name?

Regards
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
No - I'm afraid not but you can use the category number using ${CATID}
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Okay, thanks.
This was helpful.

Regards
·
9 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post