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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:28:54
Script start
Timing: Jan 31 2025 01:28:54
Module start 'layout'
Timing: Jan 31 2025 01:28:54
Module start 'content'
Timing: Jan 31 2025 01:28:54
Module end 'content'
Timing: Jan 31 2025 01:28:54
Script end

Main resources:

Total runtime0.0258 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.1563151.2109
Module start 'layout' 0.00660.0043 739.3672220.6875
Module start 'content' 0.01100.0131 960.05471,001.9297
Module end 'content' 0.02410.0017 1,961.984433.9922
Script end 0.0258  1,995.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.3415140.0002
Check MTime0.00114.3052140.0001
Mysql Total
Database connection0.00083.145410.0008
Mysqli_queries0.003413.335430.0011
Looping result0.00000.054410.0000
Template Total0.00134.910.0013
Template load0.00103.869710.0010
Template processing0.00031.017710.0003
Override
Cache load0.00072.712710.0007
General
dbfile0.00031.048280.0000
String conversion0.00000.035140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs