Page 1 of 1

custom content type

Posted: Fri Jun 12, 2009 3:34 pm
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?

Re: custom content type

Posted: Fri Jun 12, 2009 10:49 pm
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.