Page 1 of 1

write new Module

Posted: Fri Aug 01, 2008 6:28 pm
by Jolly Guy
I read in http://wiki.cmsmadesimple.org/index.php ... dule_class

Extending the CMSModule class

Code: Select all

class MyModule extends CMSModule {
  function MyModule() {
    $this->CMSModule(); // call the parent constructor
    ...your own constructor code...
  }
}
where I should add this code, to which file ?

.........

All I need to include some page using and I want to insert it in my templates or page bu using tags {MyModule}

thanks you and sorry for poor english

Re: write new Module

Posted: Fri Aug 01, 2008 9:19 pm
by duclet
You don't need to create a new module just for that. You can just do it in a user defined tag or if the IFRAME is always the same, you can even do it in a global content block.

Re: write new Module

Posted: Fri Aug 01, 2008 9:23 pm
by NaN
You also can use a tag called {embed}.
In backend ""extensions->tags" you will find the tag help.