Forums / Setup & design / Inserting email object in a class : kyriad[dot]landi[at]gofornet[dot]com

Inserting email object in a class : kyriad[dot]landi[at]gofornet[dot]com

Author Message

laurent le cadet

Wednesday 10 September 2003 7:20:04 am

I think it's nothing but when I use the email object in a classe the result is like this : kyriad[dot]landi[at]gofornet[dot]com without anylink.

Someone ever faced this problem ?

Laurent

Hans Melis

Wednesday 10 September 2003 8:41:18 am

Laurent,

It's not a problem, it's a feature :)

By default, ezp converts the @ and the . in email addresses to [at] and [dot] to prevent spambots from picking up email addresses.

I think you have 2 choices:

- Create a template.ini.append (.php) in either a site access or in the /settings/override if you want it to be site-wide. Put the following setting in it:

[WashSettings]
EmailDotText=
EmailAtText=

But I'm not sure if that will keep the @ and the . in the addresses or if it will result in a whitespace.

- What will work is overriding the default template for the email datatype. Override /design/standard/templates/content/datatype/view/ezemail.tpl (and make a copy of the default template when using the admin interface) and make your own design for the email datatype.

You could remove the "|wash(email)" in the standard template, and add the necessary tags to make it a link, but that will get you into trouble with future updates.

HTH

--
Hans

Hans
http://blog.hansmelis.be

Gunnstein Lye

Wednesday 10 September 2003 9:25:04 am

The simplest and best solution is Hans's first one, with a minor modification:

Create a template.ini.append (.php) in either a site access or in the /settings/override if you want it to be site-wide. Put the following setting in it:

[WashSettings]
EmailDotText=.
EmailAtText=@

Hans Melis

Wednesday 10 September 2003 9:33:05 am

Ah yes, that's also more logical than what I've managed to make of it :)

Thanks!

--
Hans

Hans
http://blog.hansmelis.be

laurent le cadet

Wednesday 10 September 2003 9:35:22 am

Thanks guys,

It work fine and convert "." and "@" but it don't create a mailto link.

I thought the feature email was for this like url which is ok.

Any suggestions ?

Bjørn Kaarstein

Thursday 11 September 2003 12:24:50 am

I think that would be a template issue, Laurent.
Just edit the template and put the mailto: there.

Regards Bjørn

Gunnstein Lye

Thursday 11 September 2003 3:57:34 am

Yes, in order to get the email as a link you must create an override for templates/content/datatype/view/ezemail.tpl. The default implementation will only show it as text. This is because the default also 'washes' the mail so it is not machine-readable.

eZ debug

Timing: Jan 31 2025 04:07:14
Script start
Timing: Jan 31 2025 04:07:14
Module start 'content'
Timing: Jan 31 2025 04:07:14
Module end 'content'
Timing: Jan 31 2025 04:07:15
Script end

Main resources:

Total runtime0.1925 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.0062 589.4297180.7969
Module start 'content' 0.00620.0048 770.2266102.0234
Module end 'content' 0.01100.1813 872.2500530.0000
Script end 0.1923  1,402.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.7763200.0002
Check MTime0.00140.7377200.0001
Mysql Total
Database connection0.00070.347610.0007
Mysqli_queries0.143374.48041410.0010
Looping result0.00130.67821390.0000
Template Total0.181094.010.1810
Template load0.00090.484710.0009
Template processing0.180093.533110.1800
Override
Cache load0.00070.340810.0007
Sytem overhead
Fetch class attribute can translate value0.00090.491110.0009
XML
Image XML parsing0.00030.141810.0003
General
dbfile0.00693.5707200.0003
String conversion0.00000.003330.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