Page 1 of 1
Create your own content types?
Posted: Wed Dec 17, 2008 6:40 am
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.
Re: Create your own content types?
Posted: Wed Dec 17, 2008 8:26 pm
by Pierre M.
Hello,
what do you want to do ? What new Content types do you need ?
Pierre M.
Re: Create your own content types?
Posted: Fri Dec 19, 2008 3:22 am
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.
Re: Create your own content types?
Posted: Fri Dec 19, 2008 3:57 am
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.
Re: Create your own content types?
Posted: Fri Dec 19, 2008 3:38 pm
by jessemd
ok - great! I'll give it a try. Thanks so much.