Forums / Developer / Referrer node_id / Comment39639

Author Topic

Willie Seabrook

Thursday 15 January 2004 3:12:24 pm

Comment39639

Do you mean for example if a user is viewing content/view/full/123 and clicks a link to content/view/full/456 you want to be able get the node value 123 inside the template that displays 456?

If so, there is no such feature in Exponential that I know of.

What you could do though is enable get parameters in your templates so that you can reference a get parameter in a template.

IE:

In the template that displays 123 you would add display the link like so:

/content/view/full/456?referrer_node_id={$node_id}

then in the template that displays 456:

{$Parameters:get.referrer_node_id}

You can enable this by editing kernel/content/view.php
and adding a couple of lines to add the request parameters as a template variable.

I can dig out the code if this is what you would like. Be warned however, doing this means you need to turn of the cache for that template, slowing down its display.

Regards,
Willie