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

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 19 2025 15:06:10
Script start
Timing: Jan 19 2025 15:06:10
Module start 'layout'
Timing: Jan 19 2025 15:06:10
Module start 'content'
Timing: Jan 19 2025 15:06:12
Module end 'content'
Timing: Jan 19 2025 15:06:12
Script end

Main resources:

Total runtime1.4096 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1563152.6250
Module start 'layout' 0.00710.0043 741.781339.4453
Module start 'content' 0.01141.3964 781.2266528.2344
Module end 'content' 1.40780.0018 1,309.46098.1641
Script end 1.4095  1,317.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2269160.0002
Check MTime0.00130.0945160.0001
Mysql Total
Database connection0.00080.056710.0008
Mysqli_queries1.356696.2438540.0251
Looping result0.00060.0445520.0000
Template Total1.359096.420.6795
Template load0.00210.152020.0011
Template processing1.356896.257120.6784
Template load and register function0.00020.011510.0002
states
state_id_array0.00290.204610.0029
state_identifier_array0.00160.113420.0008
Override
Cache load0.00180.1273220.0001
Sytem overhead
Fetch class attribute can translate value0.00090.062120.0004
Fetch class attribute name0.00120.087530.0004
XML
Image XML parsing0.00300.212220.0015
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00430.3051160.0003
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs