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.