Page 1 of 1

How to generate frontendlike link i admin panel??

Posted: Fri May 23, 2008 2:25 pm
by piotrekkr
Hi,
I need to generate link like in frontend in admin panel of my module, but CreateLink CreateFrontendLink generate wrong links:

Code: Select all

http://localhost/php/admin/moduleinterface.php?mact=Flash,,main_object,0&object_id=4
i need link like this:

Code: Select all

http://localhost/php/index.php?mact=Flash,cntnt01,main_object,0&cntnt01object_id=1&cntnt01returnid=15
Help plz :)

Re: How to generate frontendlike link i admin panel??

Posted: Fri May 23, 2008 2:28 pm
by calguy1000
If I understand correctly, you're trying to create a link from the admin panel to a front end page
in order to do that, you have to specify a page id in the 'returnid' field as it needs to know what page to link to
in the admin section, by default the $returnid variable is empty.

Re: How to generate frontendlike link i admin panel??

Posted: Fri May 23, 2008 2:42 pm
by piotrekkr
Thank you very much it's working  :)