Forums / Setup & design / mailto: link problem
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: [email protected]"> [email protected]
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...)
Friday 30 September 2005 8:11:06 am
Finally, I use an XML-field filled like this:
<link href='mailto:[email protected]'>[email protected]</link>
It works fine...and my headache too !