How to generate frontendlike link i admin panel??

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
piotrekkr
Forum Members
Forum Members
Posts: 38
Joined: Mon Mar 05, 2007 5:30 pm

How to generate frontendlike link i admin panel??

Post 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 :)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
piotrekkr
Forum Members
Forum Members
Posts: 38
Joined: Mon Mar 05, 2007 5:30 pm

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

Post by piotrekkr »

Thank you very much it's working  :)
Post Reply

Return to “Developers Discussion”