• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: White space in Emails when using {if} statements

White space in Emails when using {if} statements 4 years 6 months ago #40654

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Hello.
I use the "{if {fieldname:value}} {fieldname:caption}:{fieldname:value} {/if}" in confirmation Emails to hide fields that have no value.
This works.
But it generates a white space in the Email. I have a very long list and if the first field with a value is at the end of the list, you have to scroll down a long way until it appears.
How can I completely hide this white space when a field has no value?

Regards
Martin
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.

White space in Emails when using {if} statements 4 years 6 months ago #40656

  • andreic
  • andreic's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 745
  • Thank you received: 66
Hello,

Are you by any chance using the if clauses inside paragraph tags? For example:
<p>{if {fieldname:value}} {fieldname:caption}:{fieldname:value} {/if}</p>

if this is the case then an empty paragraph tag will be generated, please try including the paragraph tags inside the if clause:
{if {fieldname:value}}<p> {fieldname:caption}:{fieldname:value} </p>{/if}

Please try it and let me know!
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
The following user(s) said Thank You: info4683

White space in Emails when using {if} statements 4 years 6 months ago #40657

  • info4683
  • info4683's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 1
Thank You!

This made my day!

Great.
Kaum macht man etwas richtig, schon klappt´s..
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!