url in class article

Author Message

Ene Rammer Nielsen

Tuesday 10 July 2007 1:24:43 am

Hi,
I would like to make a link, looking something like this: http://www.test.dk/ret/ret.php?email=$current_user.email in an instans of my article class.

Is it possible to get the email address of the user who is currently logged in here or is it only possible in a template?

Hope somebody can help me.

André R.

Tuesday 10 July 2007 1:51:28 am

only possible in a template, and you'll have to fetch the current user if you want to use that in a node template.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 01:05:12
Script start
Timing: Jan 19 2025 01:05:12
Module start 'layout'
Timing: Jan 19 2025 01:05:12
Module start 'content'
Timing: Jan 19 2025 01:05:13
Module end 'content'
Timing: Jan 19 2025 01:05:13
Script end

Main resources:

Total runtime1.2944 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 590.5781152.6250
Module start 'layout' 0.00560.0026 743.203139.4453
Module start 'content' 0.00821.2847 782.6484521.9453
Module end 'content' 1.29290.0015 1,304.59388.1719
Script end 1.2944  1,312.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2567160.0002
Check MTime0.00130.0998160.0001
Mysql Total
Database connection0.00090.067810.0009
Mysqli_queries1.252496.7534540.0232
Looping result0.00070.0529520.0000
Template Total1.263997.620.6319
Template load0.00190.143520.0009
Template processing1.262097.498820.6310
Template load and register function0.00030.019810.0003
states
state_id_array0.00190.143310.0019
state_identifier_array0.00090.066720.0004
Override
Cache load0.00150.1188100.0002
Sytem overhead
Fetch class attribute can translate value0.00140.107920.0007
Fetch class attribute name0.00170.133430.0006
XML
Image XML parsing0.00050.042320.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00070.0566170.0000
String conversion0.00000.000740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs