Forums / Setup & design / Which templete for email datatype?

Which templete for email datatype?

Author Message

Daniele Nocentini

Friday 18 March 2005 3:38:03 am

I have this code that show me the value of email datatype:

{attribute_view_gui attribute=$node.object.data_map.email}

this show me this result:
infoSPAMFILTER@mtbalpago.it

I want to delete the spamfilter string and I want to add the mailto link but I can't find the template for this datatype, I try in design\standard\templates\content\datatype\view\ezemail.tpl
but it's not the correct template.

Antica Bottega Digitale srl
http://www.abd.it

Łukasz Serwatka

Sunday 20 March 2005 10:03:11 pm

Hi Daniele,

Spam filter you can change in template.ini file. If you want to disable it, remove |wash( email ). To view e-mail address with mailto: use

{$node.object.data_map.email.data_text|wash( email )|autolink()}

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jonny Bergkvist

Monday 25 April 2005 4:56:10 am

Hi Lukasz,

I cannot get

{$node.object.data_map.email.data_text|wash( email )|autolink()}

to work. The text doesn't get linked, because of the wash(email)-operator that spam-protects the emailaddress.

If I do

{$node.object.data_map.email.data_text|autolink()|wash( email )}

then it gets linked, but the mailto:-link is like this:
mailto:user<span class="spamfilter">SPAMFILTER</span>@domain.com

( I have the spamfilter class in my css with display:none )

<b>So, how can I make a spamprotected mailto:-link?</b>

Łukasz Serwatka

Monday 25 April 2005 5:09:54 am

Hi Jonny,

You can change default spam filter in template.ini file. You can set @ like _AT_ so your link will be mailto:user_AT_domain.com

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog