Write my first module.
I'm looking for a couple of days now but cannot find the answer.
How can i get var to my modulescript ?
Example :
On my page i give {modulename order="1"}
How can I read the value of order in my module php script.
There is now variable $order.
[Solved] Page var to module
-
- Power Poster
- Posts: 477
- Joined: Wed Jan 25, 2006 11:53 am
- Location: Netherlands
[Solved] Page var to module
Last edited by musicscore on Sat Feb 04, 2012 9:13 pm, edited 1 time in total.
Re: Page var to module
$params['order']
Don't forget to use
Or CLEAN_STRING in stead of CLEAN_INT
check the News module for an example of how to use this
Don't forget to use
Code: Select all
$this->SetParameterType('order',CLEAN_INT);
check the News module for an example of how to use this
-
- Power Poster
- Posts: 477
- Joined: Wed Jan 25, 2006 11:53 am
- Location: Netherlands
Re: Page var to module
Jos,
Many thanks. I got it to work.
Many thanks. I got it to work.