mailto: link problem

Author Message

Nicolas Heiringhoff

Thursday 29 September 2005 7:47:37 am

Hello everyone,

i have a litte problem with a mailto: link.
In my custom class I have a textfield called email.
In the templete I use this code to display the email adress:

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

This works fine.

Now I want to make a mailto: link to this email adress. When I use

E-Mail: <a href="mailto:{attribute_view_gui attribute=$node.object.data_map.email}">{attribute_view_gui attribute=$node.object.data_map.email}</a>

I get this in the HTML output:

E-Mail: SPAMFILTER@heiringhoff.de"> nicoSPAMFILTER@heiringhoff.de 

So obviously something is wrong! Can anybody help?

http://www.heiringhoff.de

Mads Ovesen

Thursday 29 September 2005 8:56:38 am

You should use an XML-field instead of a text-field in your admin and write

 <link href='mailto:<your mail>'><your link></link>

Alternatively you can use the email datatype

- Mads

/m

Franck T.

Friday 30 September 2005 7:25:26 am

I'm using the email datatype but it doesn't work: i get the adress but not as a link .
Have tried all this:

 <td>1<link href='mailto:<{attribute_view_gui attribute=$node.object.data_map.mail}>'><{attribute_view_gui attribute=$node.object.data_map.mail}></link></td>
     <td>2<link href='mailto:<{attribute_view_gui attribute=$node.object.data_map.mail}>'>{attribute_view_gui attribute=$node.object.data_map.mail}</link></td>
      <td>3<link href='mailto:<{attribute_view_gui attribute=$node.object.data_map.mail}'>{attribute_view_gui attribute=$node.object.data_map.mail}</link></td>
      <td>4<link href='mailto:<{attribute_view_gui attribute=$node.object.data_map.mail}'><{attribute_view_gui attribute=$node.object.data_map.mail}></link></td>
       <td>5<link href='mailto:{attribute_view_gui attribute=$node.object.data_map.mail}' >{attribute_view_gui attribute=$node.object.data_map.mail}</link></td>
       <td>6<link href='mailto:{attribute_view_gui attribute=$node.object.data_map.mail}' >>{attribute_view_gui attribute=$node.object.data_map.mail}</link></td>  

Some idea will be helpfull (headache in perspective...)

Franck T.

Friday 30 September 2005 8:11:06 am

Finally, I use an XML-field filled like this:

<link href='mailto:john.nash@inside.org'>john.nash@inside.org</link>

It works fine...and my headache too !

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 18 2025 11:28:24
Script start
Timing: Jan 18 2025 11:28:24
Module start 'layout'
Timing: Jan 18 2025 11:28:24
Module start 'content'
Timing: Jan 18 2025 11:28:25
Module end 'content'
Timing: Jan 18 2025 11:28:25
Script end

Main resources:

Total runtime0.7301 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.6797152.6250
Module start 'layout' 0.00530.0038 742.304739.4297
Module start 'content' 0.00920.7196 781.7344586.3594
Module end 'content' 0.72870.0013 1,368.093812.1875
Script end 0.7300  1,380.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00690.9466160.0004
Check MTime0.00150.2028160.0001
Mysql Total
Database connection0.00060.084510.0006
Mysqli_queries0.674592.3892620.0109
Looping result0.00070.0965600.0000
Template Total0.699995.920.3499
Template load0.00590.814420.0030
Template processing0.693995.043220.3470
Template load and register function0.00010.012610.0001
states
state_id_array0.00070.096010.0007
state_identifier_array0.00100.133820.0005
Override
Cache load0.00520.7157290.0002
Sytem overhead
Fetch class attribute can translate value0.00050.063830.0002
Fetch class attribute name0.00100.132150.0002
XML
Image XML parsing0.00060.082430.0002
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00080.1113160.0001
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/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: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs