Forums / Setup & design / Display of Email datafields

Display of Email datafields

Author Message

Nicolas Heiringhoff

Monday 29 March 2004 6:28:19 am

When I use the datafield "E-Mail" in a class and enter an email-adress in the administration-interface, it is displayed like this on the website: adress[at]domain[dot]com. If you look at the TSCM tutorial, we have the member class and the email-datafield is used in that class (http://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_members_page/member_info_page). I wonder how i can use the email-datafield correctly. I?ve tried to replace the email-datafield with a xml-textfield and the following tags: Mail : <link href='adress@domain.com' target='_self'>adressdomain.com</link>. Now the email is linked, but the xml-fields adds automatically a linebreak, which i can not remove. Can anybody tell me, how i implemnet an email-adress properly?

regards, nico

http://www.heiringhoff.de

Lazaro Ferreira

Monday 29 March 2004 10:36:13 am

Hi,

If I understand you right, you may override ezemail.tpl standard template locate at:
design/standard/templates/content/datatype/view/ezemail.tpl

you can change its code from

{$attribute.data_text|wash(email)}

to

{$attribute.data_text|wash(xhtml)}

That should do the trick
--------------------------------
I didn't recomend you to override it manually (at least you know what are you doing), the recommended way is to do it via administration page, go to setup/templates area, there search for the right template you will have to navigate through all of them until find the one that you need to override (usually datatype templates start after 7th page in the navigator listing)

--------------------------
Finally the use of [dot] in the email, is to evoid automatic spam use email name outputs at your web page to spam

So you should think if it worths the change to "." output
---------------------------
Hope this help

Lazaro
http://www.mzbusiness.com

eZ debug

Timing: Jan 19 2025 11:48:12
Script start
Timing: Jan 19 2025 11:48:12
Module start 'content'
Timing: Jan 19 2025 11:48:12
Module end 'content'
Timing: Jan 19 2025 11:48:12
Script end

Main resources:

Total runtime0.0199 sec
Peak memory usage4,096.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00010.0076 588.9531180.8359
Module start 'content' 0.00770.0056 769.789193.9922
Module end 'content' 0.01330.0065 863.781370.7031
Script end 0.0198  934.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.1214120.0002
Check MTime0.00136.6242120.0001
Mysql Total
Database connection0.00104.892110.0010
Mysqli_queries0.003718.612840.0009
Looping result0.00000.130720.0000
Template Total0.006231.010.0062
Template load0.00094.415010.0009
Template processing0.005326.552110.0053
Override
Cache load0.00062.992110.0006
General
dbfile0.00157.7834100.0002
String conversion0.00000.042030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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