Hello,

How can I add a destination path (query) to nodereferrer create (6.x)? I know how I can do it in v5.x, but don't know how I can add 'return to node - master' in version 6.

Can someone help me out?

thx,
Fossie

Comments

2ndChanceTech’s picture

Took me a bit, but I managed to figure this out. Don't know if it's the most elegant method. But

here it is...

in .module

find: $url = 'node/'.$node->nid.'/create_referrer/'.$i.'/'.$type.'/0';

Now replace:

 $url = 'node/'.$node->nid.'/create_referrer/'.$i.'/'.$type.'/0';
           $items[] = l($text, $url);

with:

 $url = 'node/'.$node->nid.'/create_referrer/'.$i.'/'.$type.'/0';
           $options = array (
	          'query' => 'destination=node/'.arg(1),
                  );
           $items[] = l($text, $url, $options);

hope that helps. this should be a setting in the admin.

fossie’s picture

Status: Active » Fixed

This works,

thx,
Fossie

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.