How to define a new Page Type?

Permalink
I started using C5 only three days ago, so please bear with me.

I chose "plain yogurt" theme for my website. My question is: How do I define a page type that can be different from the one that comes with the theme? For pages other than the front page, ll I need is a plain page with one area, no side bar, nor header/footer. How do I define such a page type?

I did try Dashboard -> Pages and Themes -> Page Type -> Add a Page Type. But the resulting 'page type' always seems to be a variant of 'plain yogurt' default page type.

Thanks
csc

 
Mnkras replied on at Permalink Reply
Mnkras
you will have to make your own,

lets say that you create a pagetype with the handle

new_page_type

for c5 to use a different layout, there has to be a file called new_page_type.php and c5 will automatically use it
csc replied on at Permalink Reply
Thanks for replying, Mnkras. Is there a document describing what you suggested?

BTW, I found this howtohttp://www.concrete5.org/documentation/how-tos/another-primer-on-ar... which provides good explanation about page type. But it does not talk about creating new type.

Thanks
csc
bcarone replied on at Permalink Reply
bcarone
CSC

You have to actually make a php file.

If you look at the files in your theme (plain yogurt or any others) you will see several "example.php" files. You create one with the areas defined (no-column or columns) and save it into your theme folder with a new name. Once you have done that, you go to the dashboard/themes and page types and select your theme. There is an option to update it. Select update and the new page_type will be available.

Hope this helps.

Bill