CreateReturnLink & $params array

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
manmower
Forum Members
Forum Members
Posts: 15
Joined: Wed May 13, 2009 12:41 pm

CreateReturnLink & $params array

Post by manmower »

Hi there!
Im trying to make a returnlink wich also sends some params back... But that just doesn't work...
$this->smarty->assign('back_href', $this->CreateReturnLink($id, $returnid, '', array('categoryid'=>$categoryid), true));

this creates a link that looks like this:
index.php?page=bulletins&cntnt01categoryid=49

but when i print the $params array it doesnt show the categoryid... Does anybody know why?

Thanks in advance!
manmower
Forum Members
Forum Members
Posts: 15
Joined: Wed May 13, 2009 12:41 pm

Re: CreateReturnLink & $params array

Post by manmower »

I hate to bump this but I really need a solution. Maybe someone has another idea how to create a link to go back to a previous page using the right parameters? Im currently working on a search function for my module. And when you visit a search result I want to be able to go back to the search results. So I need the right parameters to go back to the right search results (mainly the search keywords...) Anybody any idea? I could use Sessions but that doesnt seem like a very clean idea...

Thanks
milehigh

Re: CreateReturnLink & $params array

Post by milehigh »

Here's what I use for something similar...(be sure $searchedFor is an array)

$this->smarty->assign('displayResults', $this->CreateFrontendLink($id,$returnid,'doSearch','Return Text',$searchedFor));
manmower
Forum Members
Forum Members
Posts: 15
Joined: Wed May 13, 2009 12:41 pm

Re: CreateReturnLink & $params array

Post by manmower »

I guess that's a link for sending parameters to the next page so you can use those parameters to create a returnlink... I already have the right parameters in my back where I want to create a ReturnLink. The problem is that the page where the link returns to doesnt "read" those parameters...
Post Reply

Return to “Developers Discussion”