TOPIC:

empty fields 3 months 2 weeks ago #244571

  • Topic Author
  • gerardb
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 126
  • Thanks: 0
Thanks for the update. It looks nice with the new page.
But the code is not working.
I use it in the html page. (not the standard) and set it all.
The code is in a HTML table.
Perhaps this is the problem as the table still reserve the space on the table?
This is a part of the code:
<tr style="text-align: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt;">
<td style="width: 400px;">{Swiss_Half_Fare:label}</td>
<td style="width: 14px;"> </td>
<td style="width: 160px;">{Swiss_Half_Fare:value}</td>
<td style="width: 40px;"> </td>
<td colspan="3" style="width: 160px;"> </td>
</tr>
<tr style="text-align: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt;">
<td>{hide 2_klasse}{2_klasse:label}</td>
<td> </td>
<td>{2_klasse:value}{/hide}</td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr style="text-align: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt;">
<td>(hide 1_Klasse}{1_Klasse:label}</td>
<td> </td>
<td>{1_Klasse:value}{/hide}</td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr style="text-align: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt;">
<td>{hide Hinterlegen_am_flughaven}{Hinterlegen_am_flughaven:label}</td>
<td> </td>
<td>{Hinterlegen_am_flughaven:value}{/hide}</td>
<td> </td>
<td colspan="3"> </td>
</tr>
<tr style="text-align: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt;">
<td>{hide Versand_direkt_zum_Kunden_in_Deutschland}{Versand_direkt_zum_Kunden_in_Deutschland:label}</td>
<td> </td>
<td>{Versand_direkt_zum_Kunden_in_Deutschland:value}{/hide}</td>
<td> </td>
<td colspan="3"> </td>
</tr>

And the mail in the attachment.

Thanks for support.
Attachments:

Please Log in or Create an account to join the conversation.

empty fields 3 months 2 weeks ago #244604

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 803
Hi,

can you please use the code tag of the forum and add your html template?
Otherwise it strips some things and I don't get the whole picture of it.
Alternatively, you can put it into a txt file and attach it with your next reply.

Regards,
Markus

Please Log in or Create an account to join the conversation.

empty fields 3 months 1 week ago #244703

  • Topic Author
  • gerardb
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 126
  • Thanks: 0
Let me explain the solution, and there is no solution for this!
The data is in a table. If there is no data the cells are empty and not visible.
You will see empty cells and of course it will take space as the table is there.
In a HTML code you can’t delete a line in the table if he is empty.
If you use the fields without a table the fields are empty and the line will be empty.
In this case the line will not be visible and the data on the next line will be shifted up to the previous line if there is no other data.
I have been searching on the web to find an answer on this hide/visibility and all answers are the same: there is no way to delete a row in a table on the screen after it is send.
The structure of the table is there, but empty.
Perhaps you have a solution?
Thanks for support.
Gerard

Please Log in or Create an account to join the conversation.

empty fields 3 months 1 week ago #244729

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 803
Hi,

well, that's why I added this feature and it is working. I assume that the editor removes some stuff (tinymce and jce can be nasty on this) when they try to tidy the html.

However, could you please as I asked, put your template code into a text file and attach it here, I gonna try it out on my installation then and report back what is causing the issue.

However, you can still use the php-based email templates by the way and turn these lines off.

crosstec.org/en/support/online-documenta...-templates-work.html

They give you a lot more flexibility.

Regards,
Markus

Please Log in or Create an account to join the conversation.

empty fields 3 months 1 week ago #244733

  • Topic Author
  • gerardb
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 126
  • Thanks: 0
Thanks for the answer.
Here is the html code i use in the mailback. (in txt format)
Regards,
Gerard
Attachments:

Please Log in or Create an account to join the conversation.

empty fields 3 months 1 week ago #244741

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 803
ok, here is an example of how it should be:
{hide Anreisetag}
<tr style="text-align: left; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt;">
    <td>{Anreisetag:label}</td>
    <td>&nbsp;</td>
    <td>{Anreisetag:value}</td>
    <td>&nbsp;</td>
    <td colspan="3">&nbsp;</td>
</tr>
{/hide}

As you can see, the difference is that it will remove the entire row instead of the contents.

But you need to be careful to add this into tincymce or jce, because they might remove the hide tags, thinking this is invalid html. You can try this out.

If it strips the code, you can prevent this, by temporarily setting the default editor to "Editor - None" in the joomla config. Add your code and try out if it works and once it does, turn it back on.

I think there is also probably an option in some editors to turn off html tidying but afaik, tinymce doesn't support that.

Regards,
Markus

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!