By xgipper on Tuesday, 04 August 2020
Replies 2
Likes 0
Views 518
Votes 0
Hello
In the latest events module, is it easily possible to style just one of the fields? I would like 'location' only to appear in italic. Or does that mean changing CSS somehow?
I am using the following string, but the <i> around the location makes the whole listing italic:

${title}
<i>${location}<i/>
${startDate(%A %B %e)}[!a:, ${startDate(%l:%M %p)} - ${endDate(%l:%M %p)}][a: - All Day]
${content(85|...)}<p/>
Also underneath the list of latest events, there's a link that says "View Full Calendar"; How could I add another after that that says "Add Your Event" with a link to an article?
Thank you so much for any help!
Hello,

Sure you just have it coded wrong ;-)


${title}
<i>${location}</i>
${startDate(%A %B %e)}[!a:, ${startDate(%l:%M %p)} - ${endDate(%l:%M %p)}][a: - All Day]
${content(85|...)}


Many thanks
Tony
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah yes. My silly mistake.
Any idea on my second question?
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post