| View previous topic :: View next topic |
| Author |
Message |
Michielvp Quite a regular
Joined: 05 Dec 2008 Posts: 13 Location: Amsterdam
|
| Posted: Wed Apr 29, 2009 10:09 am Post subject: Blank line when using conditional text. |
|
|
Hi,
Beneath you see a part of our signature, not everyone in our organisation wants or has a mobile phone number in his signature. The problem is that people without a mobile phone have two blank rules between the fax number and the addressline. Is there a workaround possible so that there is no unneeded enter line?
Regards, Michiel
T: ((Telephone_number))
F: ((Fax_number))
$$NULL(Mobile_number)$$VALUE(M (Mobile_number)) )$$
((Address)), ((ZIP/Postal_Code)) ((City)), the Netherlands |
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Wed Apr 29, 2009 12:22 pm Post subject: Conditional text |
|
|
Hi Michiel,
If you enter Cockpit code view, you will see this code:
| Code: | | {$$NULL(Mobile_number)$$VALUE(Mobile: ((Mobile_number))<BR>)$$} |
Simply remove <BR> in the code and you will remove the line break:
| Code: | | {$$NULL(Mobile_number)$$VALUE(Mobile: ((Mobile_number)) )$$} |
OK? _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
Bjarne Mess Certified Professional


Joined: 01 May 2007 Posts: 735 Location: Copenhagen
|
| Posted: Wed Apr 29, 2009 12:38 pm Post subject: |
|
|
I'm not sure if this is a text based signature. In that case you cannot avoid the extra space. The only way to go is to switch the two lines in the text sig and put the mobile stuff at the very end.
If it is the HTML version, Jesper just wrote the solution.
Thanks. |
|
| Back to top |
|
 |
Michielvp Quite a regular
Joined: 05 Dec 2008 Posts: 13 Location: Amsterdam
|
| Posted: Fri May 08, 2009 8:05 am Post subject: |
|
|
Unfortunately it still doesn't work.
I checked with the preview button.
This is the code for one of the signatures. When no mobile number is present, the layout will be ok, with one blank rule. If there is a mobile number in the active directory it will be placed but then there is no blank line between the mobile number and our address line.
| Code: | | <FONT face="Lucida Sans Unicode" color=#000000 size=2><STRONG>__vennootschap__</STRONG><BR><BR>((Display_name))$$NULL(Description)$$VALUE(, ((Description)) )$$</FONT><BR><BR><FONT face="Lucida Sans Unicode" color=#000000 size=2>Email: ((E-mail))$$NULL(Home_phone)$$VALUE(, ((Home_phone)) )$$<BR>T: ((Telephone_number))<BR>F: ((Fax_number))<BR>{$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number)) )$$}</FONT><BR><FONT face="Lucida Sans Unicode" color=#000000 size=2>((Address)), ((ZIP/Postal_Code)) ((City)), the Netherlands</FONT><BR><BR><FONT face="Lucida Sans Unicode" color=#000000 size=1>__vennootschap__ with a statutory seat in __seat__, The Netherlands; commercial register number __kvk__.<BR>This e-mail is confidential and intended for use by the addressee only. If you are not the intended recipient, please notify us immediately and delete this e-mail, as well as any attachments.</FONT><BR> |
|
|
| Back to top |
|
 |
Jesper Frier Certified Professional


Joined: 09 Sep 2006 Posts: 1940 Location: Stoevring, Denmark
|
| Posted: Sat May 09, 2009 6:04 am Post subject: |
|
|
These parts are wrong:
| Code: | | $$NULL(Description)$$VALUE(, ((Description)) )$$ |
| Code: | | $$NULL(Home_phone)$$VALUE(, ((Home_phone)) )$$ |
As you can see, syntax is not started or ended correct.
Copy this code
This code will create a blank line before your address - with Mobile_phone content and without.
Edit Description and Home_number as i simply removed the redundent code mentioned above.
| Code: | <FONT face="Lucida Sans Unicode" color=#000000 size=2><STRONG>__vennootschap__</STRONG><BR><BR>
((Display_name)), ((Description))</FONT><BR><BR>
<FONT face="Lucida Sans Unicode" color=#000000 size=2>Email: ((E-mail)), ((Home_phone))<BR>
T: ((Telephone_number))<BR>
F: ((Fax_number))<BR>
{$$NULL(Mobile_number)$$VALUE(M: ((Mobile_number))<BR> )$$}</FONT><BR>
<FONT face="Lucida Sans Unicode" color=#000000 size=2>((Address)), ((ZIP/Postal_Code)) ((City)), the Netherlands</FONT><BR><BR>
<FONT face="Lucida Sans Unicode" color=#000000 size=1>__vennootschap__ with a statutory seat in __seat__, The Netherlands; commercial register number __kvk__.<BR>
This e-mail is confidential and intended for use by the addressee only. If you are not the intended recipient, please notify us immediately and delete this e-mail, as well as any attachments.</FONT>
<BR> |
OK now? _________________ </Jesper> | Test Email Signature | Showcase |  |
|
| Back to top |
|
 |
Michielvp Quite a regular
Joined: 05 Dec 2008 Posts: 13 Location: Amsterdam
|
| Posted: Mon May 11, 2009 6:23 am Post subject: |
|
|
Yes! works great!
somehow one extra <BR> was added automatically when switching between design view and code view. |
|
| Back to top |
|
 |
Bjarne Mess Certified Professional


Joined: 01 May 2007 Posts: 735 Location: Copenhagen
|
| Posted: Mon May 11, 2009 9:39 am Post subject: |
|
|
| There is automatic code validation built into the editor, so that is why you get the extra <br> in the end. |
|
| Back to top |
|
 |
|