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.