Wednesday, 14 March 2018
  3 Replies
  1.6K Visits
0
Votes
Undo
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?
Friday, 16 March 2018 07:04
·
#198972
0
Votes
Undo
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 14:20
·
#199011
0
Votes
Undo
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?
Monday, 19 March 2018 14:02
·
#199076
0
Votes
Undo
  • Page :
  • 1
There are no replies made for this post yet.