Create your own content types?

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
jessemd
New Member
New Member
Posts: 4
Joined: Wed Dec 17, 2008 6:29 am

Create your own content types?

Post by jessemd »

Hi,
In the admin area, Content>Pages> Add New Content , can you add your own content types in the 'content types' drop down in addition to 'content', 'external link' etc... I want to be able to add custom types with there own custom fields.  Is there any information on it anywhere?  Thanks so much for the help.
Pierre M.

Re: Create your own content types?

Post by Pierre M. »

Hello,

what do you want to do ? What new Content types do you need ?

Pierre M.
jessemd
New Member
New Member
Posts: 4
Joined: Wed Dec 17, 2008 6:29 am

Re: Create your own content types?

Post by jessemd »

Hi,

Thanks for the reply.  Basically,  I want to have another item in the drop down for custom content types.  So if I choose a custom content type, the page would display custom fields to fill out.  For example, if I was making a site for a song composer, I would have a content type of "Audio Catalog", which it would display all the custom fields required to add a new song to the catalog. 

Or maybe a content type would be recipes, which would load custom fields to add a recipe page to the site. 

Thanks again Pierre.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Create your own content types?

Post by duclet »

You don't need to add a new content type for that. A template for each "type" should be enough. What you'll need to do is move the common components of the template (excluding the {content}, more on this later) to a global content block. Now, just create a new template for each "type" and refer to the global content block for the common elements, and use the {content block="Some Block"} to specify which fields will be available for editing when the user adds or edit a page. There are more options with the {content} tag so look at the documentation for that for more info.
jessemd
New Member
New Member
Posts: 4
Joined: Wed Dec 17, 2008 6:29 am

Re: Create your own content types?

Post by jessemd »

ok - great! I'll give it a try.  Thanks so much.
Post Reply

Return to “Developers Discussion”