Page 1 of 1

Create link from admin to frontend

Posted: Tue Nov 22, 2005 12:20 pm
by lemkepf
Hello,
I need to create a link using the "createlink" method to send someone from the admin/moduleinterface to the regular moduleinterface outside the admin.

On IRC Wishy said "Use CreateLink, but put the id of the page you want to go to in the return_id"

The question is... how do i get the return_id of the moduleinterface that isn't in the admin section?

Thanks for the help!

Re: Create link from admin to frontend

Posted: Tue Nov 22, 2005 4:16 pm
by lemkepf
Wishy helped. Thanks.

Re: Create link from admin to frontend

Posted: Tue Nov 22, 2005 6:00 pm
by Anduril
Maybe its an idea to post your solution here... it could be helpfull to others....

Re: Create link from admin to frontend

Posted: Tue Nov 22, 2005 8:35 pm
by lemkepf
Like this:

Code: Select all

$id = "cntnt01";
$returnid = "9";
$unsublink = $this->CreateLink($id, 'unsubscribe_email', $returnid, '', array('showtemplate' => 'false', 'uniqueid' => $uniqueid),'',true);
$changeprefslink = $this->CreateLink($id, 'changeprefs_email', $returnid, '', array('showtemplate' => 'false', 'uniqueid' => $uniqueid),'',true);