Tuesday, 08 December 2015
  4 Replies
  1K Visits
0
Votes
Undo
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
Tuesday, 08 December 2015 23:46
·
#161472
0
Votes
Undo
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

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!

Wednesday, 09 December 2015 07:38
·
#161473
0
Votes
Undo
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
Wednesday, 09 December 2015 15:33
·
#161474
0
Votes
Undo
No - I'm afraid not but you can use the category number using ${CATID}

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!

Wednesday, 09 December 2015 16:45
·
#161475
0
Votes
Undo
Okay, thanks.
This was helpful.

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