custom 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
dorgan

custom content type

Post by dorgan »

How hard is it to create a custom content type??  Do I have to do anything other than create a class inside of lib/classes/contenttypes??

Are there tutorials out there for this?
NaN

Re: custom content type

Post by NaN »

It is not that hard if you have some php skills.
I created an own contenttype: http://forum.cmsmadesimple.org/index.ph ... 118.0.html
(just a modification of "Content" , added some more params)

As i know you just need to create a file in the directory lib/classes/contenttypes where the class "ContentBase" will be extended with a class of your new contenttype.
I didn't find any tutorial for this so i studied the source of other contenttypes and did some try and error.

How hard the creation of a new contenttype will be IMHO depends on what you are trying to do.

But be advised that contentypes will change a bit in CMSms 1.6.
Post Reply

Return to “Developers Discussion”