Page 1 of 1

Help for content type

Posted: Wed Sep 27, 2006 10:30 am
by cmsDev
Hi all, does anyone know how to code a module as a content type?

I am trying to develop a module, i know how make it under different header menus,

but i am stopped at making it as a content type, which means when i create a new content page, i want

to chose my new module as a content type in the drop down list of content type.

Can some one help me to figure out?

Many thanks..

Re: Help for content type

Posted: Wed Sep 27, 2006 11:25 am
by cyberman
Please no double postings ...

I'm not a dev but perhaps you should make a look at an existing module with making a content type  ;), for instance News module. There exists a file named contenttype.news.php ...

Re: Help for content type

Posted: Wed Sep 27, 2006 8:29 pm
by cmsDev
Sorry about the double posting, that is a mistake. That would not happen again.

Thanks for your reply, and i am looking at some code of other modules. I will try to solve the problem.

Re: Help for content type

Posted: Wed Sep 27, 2006 10:45 pm
by cmsDev
  ;D
Here is the function for adding a module as a content type..

$this->RegisterContentType();

CMS is great !!!