Forums / Setup & design / mailto: link problem

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 !

eZ debug

Timing: Jan 18 2025 11:14:39
Script start
Timing: Jan 18 2025 11:14:39
Module start 'content'
Timing: Jan 18 2025 11:14:39
Module end 'content'
Timing: Jan 18 2025 11:14:40
Script end

Main resources:

Total runtime0.2050 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.8047180.8438
Module start 'content' 0.00740.0055 769.648497.9609
Module end 'content' 0.01290.1920 867.6094526.7500
Script end 0.2049  1,394.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.7020200.0002
Check MTime0.00140.6937200.0001
Mysql Total
Database connection0.00150.712310.0015
Mysqli_queries0.151173.69901410.0011
Looping result0.00180.85661390.0000
Template Total0.191693.510.1916
Template load0.00100.477110.0010
Template processing0.190692.993810.1906
Override
Cache load0.00070.354610.0007
Sytem overhead
Fetch class attribute can translate value0.00070.363510.0007
XML
Image XML parsing0.00020.114210.0002
General
dbfile0.00231.1113200.0001
String conversion0.00000.002930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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