Tip a friend : I can't manage to send the correct url :( . Someone ?

Author Message

laurent le cadet

Monday 08 December 2003 1:54:05 am

Hi,

I'm trying to use the tipafriend.tpl but I can't send the correct URL.

What I'm using (without being sure of what I'm doing) :

<a href={concat("/content/tipafriend/",$node_id)|ezurl}>Tip a friend</a>

But bad result : ..../content/tipafriend/

I don't know how to do.
Any suggestion ?

Thanks.

Laurent.

Claus Jensen

Wednesday 10 December 2003 7:22:42 am

Hey, I'll try to help you this time ;)
Are you in the correct namespace? I.e. if you have done a section above you should perhaps use $:item.node_id or $namespace:item.node_id.

hope this helps

cheers,
claÜs

laurent le cadet

Wednesday 10 December 2003 8:05:55 am

Hi again Claüs,

I tryied your suggestion ($:item.node_id) but still the same result :

The link send by mail : http://www.lestudiot.com/content/view/full/

... :(

Another thing : the link to go back to the original node after sending the form gives me this :

____________________________________________________
Object is unavailable
The object you requested is not currently available.

Possible reasons for this is.

The id or name of the object was misspelled, try changing it.
The object is no longer available on the site.
__________________________________________________

because the URL is : http://www.lestudiot.com/studiomanager/index.php/content/view/full/

Claus Jensen

Thursday 11 December 2003 12:31:32 am

Morning Laurent,
Looking at your code again: <a href={concat("/content/tipafriend/",$node_id)|ezurl}>Tip a friend</a>

Dont you need to write $node.node_id instead of just $node_id? I swear there is something wrong with that.
Have you done debugging? If not try this: {$node|attribute(show)} for lesser debug-info do {$node|attribute(show,1)} Or... try to just write out {$node_id}, Im almost sure the content will be nothing.

cheers,
claÜs

laurent le cadet

Thursday 11 December 2003 8:44:41 am

Dear Claüs,

<a href={concat("/content/tipafriend/",$node.node_id)|ezurl}>Tip a friend</a>

THAT'S CORRECT !

Thanks.

Hope to help you again.

Laurent.

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 07:27:22
Script start
Timing: Jan 19 2025 07:27:22
Module start 'layout'
Timing: Jan 19 2025 07:27:22
Module start 'content'
Timing: Jan 19 2025 07:27:22
Module end 'content'
Timing: Jan 19 2025 07:27:22
Script end

Main resources:

Total runtime0.0185 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 591.7188152.6563
Module start 'layout' 0.00560.0046 744.375039.5078
Module start 'content' 0.01020.0058 783.882893.3984
Module end 'content' 0.01600.0024 877.281334.3047
Script end 0.0185  911.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.7665140.0002
Check MTime0.00126.2338140.0001
Mysql Total
Database connection0.00094.740610.0009
Mysqli_queries0.003921.031730.0013
Looping result0.00000.232810.0000
Template Total0.001910.210.0019
Template load0.00105.372110.0010
Template processing0.00094.828010.0009
Override
Cache load0.00073.646110.0007
General
dbfile0.00052.848780.0001
String conversion0.00000.064340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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