New page types only show the default page.
Permalink 1 user found helpful
Hey everyone,
So I've been creating a website in C5 and have added loads of content already. I want to add a new page type so I've added it to the FTP then within C5 go to Page Types > Add Page Type give it a name and the corresponding handle, click add and then...nothing. Every time I try this and then apply the page design to a new page I just get the default page.
Has anyone got any idea what I might be doing wrong please. I've tried everything, clearing cache, stripping everything out of the page, everything. Nothing is working. CSS updates just fine, just not pages. Should I change the default.php or view.php pages?
Thanks,
Jonno
So I've been creating a website in C5 and have added loads of content already. I want to add a new page type so I've added it to the FTP then within C5 go to Page Types > Add Page Type give it a name and the corresponding handle, click add and then...nothing. Every time I try this and then apply the page design to a new page I just get the default page.
Has anyone got any idea what I might be doing wrong please. I've tried everything, clearing cache, stripping everything out of the page, everything. Nothing is working. CSS updates just fine, just not pages. Should I change the default.php or view.php pages?
Thanks,
Jonno
How do you mean? Is there an order to how I should be adding page type?
No but if you create the page type later & assign it to a page that was previously created, then you need to do one trick. just go to that page type, Edit it, click on any block & choose Setup on child Pages. Then choose those page which you want to implement the new page type.
Rony
Rony
Gave it a try but didn't have any luck. None of the Areas appeared after doing this, should they have though?
Thanks
Thanks
Actually, you can add page types after the initial install and successfully assign them to existing pages. I do this all the time.
Assuming all the "plumbing" is done -- and it sounds like it is -- this behavior is often associated with an issue in the PHP code of the new page type.
What you can do is to rename your Default.php file, rename your new page type as Default, and then "Preview" the theme. That should display any errors that the new page throws.
Assuming all the "plumbing" is done -- and it sounds like it is -- this behavior is often associated with an issue in the PHP code of the new page type.
What you can do is to rename your Default.php file, rename your new page type as Default, and then "Preview" the theme. That should display any errors that the new page throws.
Nice try, but no luck. It's adding in some random block areas though that aren't actually in the PHP file! It's like the server isn't updating the file or something...could that be a possibility?
Thanks!
Ok so I changed the page to default and renamed default and it works fine as default. However, changing it back to the name it should be (blog_post) causes it not to work again. I'm out again!
Cheers
Cheers
Sounds like a caching issue -- see the link provided by Robertsoniv for the specific resolution.
Try doing what this reply suggests:
http://www.concrete5.org/community/forums/usage/new-page-type-not-w...
It worked for me when I thought all hope was lost!
Also, I noticed this wasn't mentioned, but did you inspect your theme to make sure it was turned on in there?
http://www.concrete5.org/community/forums/usage/new-page-type-not-w...
It worked for me when I thought all hope was lost!
Also, I noticed this wasn't mentioned, but did you inspect your theme to make sure it was turned on in there?
That's it! It's working how it should be.
Thanks so much for the help, I owe you a pint!
Thanks so much for the help, I owe you a pint!
Rony