write new Module

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
Jolly Guy
New Member
New Member
Posts: 9
Joined: Fri Aug 01, 2008 4:35 pm

write new Module

Post 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
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: write new Module

Post 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.
NaN

Re: write new Module

Post by NaN »

You also can use a tag called {embed}.
In backend ""extensions->tags" you will find the tag help.
Post Reply

Return to “Developers Discussion”