sharing params between module instances

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
gap_tooth_clan

sharing params between module instances

Post by gap_tooth_clan »

CMS Made Simple 1.5.4 "Carolina"

I am developing a module for CMSMS I have multiple parts to my module, I have a search form and a results page all from one module.

When I use my search form the module stores the params in an array so the other instances of the module on the page can recall the search term.

My search field is positioned on the right hand side so is called after the results, the param for the search term is only passed to the search box the results do not see the param.

I figure there are several things that could work like using CSS to put the search form first, creating the form from a UDT.

I dont really want to do either of these as they are not elegant solutions, can anyone help?
gap_tooth_clan

Re: sharing params between module instances

Post by gap_tooth_clan »

I had tried to submit the form to an action page and place all params in a session and then redirect to a page.

This was not working properly and I went back and tried it again and used a header redirect instead of CMSMS redirect and it works like a charm.
Post Reply

Return to “Developers Discussion”