Help for content type

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
cmsDev

Help for content type

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

Re: Help for content type

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

Re: Help for content type

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

Re: Help for content type

Post by cmsDev »

  ;D
Here is the function for adding a module as a content type..

$this->RegisterContentType();

CMS is great !!!
Post Reply

Return to “Developers Discussion”