Using ezurl to show url, rather than build link

Author Message

James Packham

Monday 16 February 2004 2:57:07 am

Hi I'm trying to use ezurl to build a link inside a mailto link like so:

<a href="mailto:?subject={$node.object.data_map.title.data_text}&body={concat("/content/view/full/",$node.node_id,"/")|ezurl}">Tell someone about this</a>

But it just doesn't seem to want to build a url, the best I can get is by adding (no) to ezurl (to remove the quotes), which results something like this:

mailto:?subject=This item&body=/content/view/full/102

Is what I'm trying to do even posisble with ezurl?

Thanks,

~James~

James Packham

Tuesday 17 February 2004 7:47:53 am

I've got a sort of solution:

concat("http://",ezini( 'SiteSettings', 'SiteURL'),"/",$node.url_alias)

But I'm still messing around trying to get it to work in <a> tags

~James~

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 19 2025 11:52:32
Script start
Timing: Jan 19 2025 11:52:32
Module start 'layout'
Timing: Jan 19 2025 11:52:32
Module start 'content'
Timing: Jan 19 2025 11:52:33
Module end 'content'
Timing: Jan 19 2025 11:52:33
Script end

Main resources:

Total runtime1.4328 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.2891152.6406
Module start 'layout' 0.00520.0042 741.929739.4922
Module start 'content' 0.00951.4220 781.4219457.0547
Module end 'content' 1.43140.0014 1,238.47668.1250
Script end 1.4328  1,246.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2293160.0002
Check MTime0.00130.0886160.0001
Mysql Total
Database connection0.00060.043310.0006
Mysqli_queries1.388996.9324520.0267
Looping result0.00050.0326500.0000
Template Total1.402197.920.7011
Template load0.00190.130720.0009
Template processing1.400297.725120.7001
Template load and register function0.00010.007810.0001
states
state_id_array0.00170.115210.0017
state_identifier_array0.00070.049320.0004
Override
Cache load0.00160.1087170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.046310.0007
Fetch class attribute name0.00100.069630.0003
XML
Image XML parsing0.00050.034310.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00100.0667160.0001
String conversion0.00000.000640.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs