[SOLVED] pass parameters to a module from http request
Posted: Sun Aug 29, 2010 3:41 pm
I am writing a module that displays data from a table.
I looked at skeleton and module maker and have a module that i can embed on a content page ({cms_module module='mymod}) and this works fine.
Because this is an index page I want to be able to link to another row in the table with a parameter. If I amend my content call to {cms_module module='mymod' page='22'} then I can use that parameter to show item 22.
what I really need is a means to pass a variable to that page (in place of '22') or to directly request a page fro the URL (ie http://192.168.0.198/dev/cms/index.php? ... od&page=22), but I cant see how to achive this.
can anyone point me into the right direction?
thanks
--
Allan
I looked at skeleton and module maker and have a module that i can embed on a content page ({cms_module module='mymod}) and this works fine.
Because this is an index page I want to be able to link to another row in the table with a parameter. If I amend my content call to {cms_module module='mymod' page='22'} then I can use that parameter to show item 22.
what I really need is a means to pass a variable to that page (in place of '22') or to directly request a page fro the URL (ie http://192.168.0.198/dev/cms/index.php? ... od&page=22), but I cant see how to achive this.
can anyone point me into the right direction?
thanks
--
Allan