By Arctur on Wednesday, 14 March 2018
Replies 3
Likes 0
Views 1.3K
Votes 0
I want to remove the dash after start-date in the years-list of the component like it is possible in module by the "Condition on events with no specified end time" (https://www.jevents.net/frequently-asked-questions/custom-format-strings).

+++++++++
Conditional Fields

There is limited support for conditional output in the format string. The module supports 3 different conditional flags:

a = Condition on all day events
e = Condition on events with no specified end time
m = Condition on events multi day events

You would use [a: xxxxxxxx] to output xxxxxxxx when the condition is true or [!a: yyyy] to output yyyy when the condition is not true.
+++++++++++

How can I use this in the components list?
Hello,

For that you can't you would need to use the hashing so:

{enddate:enddate}

would for example become:

{enddate:enddate# - %s#}

%s is the value of the field if the field has a value.

Any thing after the last has is displayed when there is no value.

Many thanks
Tony
·
Friday, 16 March 2018 07:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you, Tony,

this helped! Now I formated this way:

<p>{{Startdatum:STARTDATE}}{{Startzeit:STARTTIME#, %s#}} {{Endzeit:ENDTIME# - #}} {{Enddatum des mehrtägigen Events:MULTIENDDATE# - #}} {{Enddatum des mehrtägigen Events:MULTIENDDATE#%s,#}} {{Endzeit:ENDTIME}}<br /><em style="color: {{farbe eventhintergund:colour}};">{{Category:CATEGORY}}:</em> {{Title Link:TITLE_LINK}}<em><br /></em></p>

which handels also Multi-Day-Events!

Is there a documentation about hashs?
·
Friday, 16 March 2018 14:20
·
0 Likes
·
0 Votes
·
0 Comments
·
·
Monday, 19 March 2018 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post