Assigning A Page Design To A Page Type

Permalink
Hi,
First post here. I'm new to C5 and still on up side of the learning curve. Here's my issue.
When assigning a page type to a page, how does Concrete5 know whether or not I have a corresponding design. I see pics of all the types and added my own pic to correspond to my 3 equal width column portal page.

The issue is that Concrete5 arbitrarily assigned my full width design as my default. So there must be a way other than to click a picture to assign one of MY designs to each subsequent page i create and change what's already occurred.
I've attached a picture of my theme's page types and elements from Dreamweaver. The file names are pretty descriptive of the designs.

Thanks for any help you can give me.

Michael

1 Attachment

 
enlil replied on at Permalink Best Answer Reply
enlil
To create a new page type you need to first, copy your /packages/themepackage/themes folder to /themes.

Next, to create a simple new page type, copy a page type, rightsidebar.php for instance, and name it mypagetype.php. it will be a clone of the rightsidebar.php.

Next go to dashboard > page types and click to add a page type. Name it accordingly and give it a handle of mypagetype, based on the fact the file was mypagetype.php. select the page type icon that most resembles the design of the your new page type and save it.

You now have a new page type called mypagetype which is a right sidebar in design!

Hope this helps!!
mdm172 replied on at Permalink Reply
Thanks for the info.
I have a packages folder in both the root and within the /concrete folder and both are empty.
Am I to create folders in /themes/?
/themes/packages/themes/mytheme/(copy of)mypagetype.php

The rest of your answer I do understand.

Thanks again
enlil replied on at Permalink Reply
enlil
Check if the theme you are using is in the root/concrete/themes folder. If so copy that folder to /themes and make your modifications there!
mdm172 replied on at Permalink Reply
I have to apologize to you. I replied yesterday but apparently never pressed the button.

Anyway, your second response made me realize that you assumed I was using a purchased theme. If I were, your answer would have been perfectly understandable.

I'm using my own hand coded HTML5/CSS3 site and adapting C5 code into it.

Thanks in large part to you, I have this solved and now have the problem of too many page types. They won't delete and I assume that's because I created pages from them. I'll straighten that out later.

Thanks Again,

Michael
mhawke replied on at Permalink Reply
mhawke
You are correct that you can't delete a page type if a page is using it but there's a twist. If a past version of a page is still using that page type, you can't delete it. You will need to hover over the Edit button and choose 'versions' and delete all previous versions to make certain that none of these versions are using that page type file.
mdm172 replied on at Permalink Reply
Hi mhawke,
Thanks for that info. As you suspected, I didn't consider the older versions. Just the trash in the sitemap. In retrospect, this makes perfect sense as I'm sure there's a lot of times people would want to rollback to a prior edit.
It's all good now and I'm pressing onward and upward.

Michael