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!
Create link from admin to frontend
Re: Create link from admin to frontend
Wishy helped. Thanks.
Re: Create link from admin to frontend
Maybe its an idea to post your solution here... it could be helpfull to others....
Re: Create link from admin to frontend
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);