Create link from admin to frontend

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Create link from admin to frontend

Post 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!
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: Create link from admin to frontend

Post by lemkepf »

Wishy helped. Thanks.
Anduril

Re: Create link from admin to frontend

Post by Anduril »

Maybe its an idea to post your solution here... it could be helpfull to others....
lemkepf
Forum Members
Forum Members
Posts: 163
Joined: Tue Oct 18, 2005 8:30 pm

Re: Create link from admin to frontend

Post 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);
Post Reply

Return to “Modules/Add-Ons”