5.7 Is Driving Me Insane! (Missing Documentation on Page Templates)

Permalink 1 user found helpful
The current documentation doesn't explain the changes in Page Templates and Page Types in 5.7.

I want to do something very simple, and create an alternate Page Template for certain pages, which is like my default except that it simply has two extra divs surrounding the content.

I tried making a new php file named 'contact.php', and then created a Page Template with 'contact' as the handle; but when I set a page to use this template, nothing seemed to happen.

Can anyone help? I want to "future proof" my work by using the most up to date version of concrete5 but it proving impossible to develop against 5.7 and this makes me, and the Concrete5 framework, both look really bad.

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi cyborgk,

If I understand correctly, you are adding a template this way?
Example:
Dashboard> Pages & Themes> Page Templates> Add Template button
name: Contact
handle: contact

Before a template can be added, it needs to be created first.
Example:
Dashboard> Pages & Themes> Themes> Page Templates button of active theme
"contact.php New template. Create page template."

After it is created, it is then available as a page template in Composer and page settings.
Dashboard> Pages & Themes> Page Templates
- Contact is now added as a page template
cyborgk replied on at Permalink Reply
I did what you suggested, but it makes no difference.

There is a "CONTACT" page template, but it is NOT using the code in contact.php. It seems to just be the same as the default template.
exchangecore replied on at Permalink Best Answer Reply
exchangecore
Disable caching if you haven't already. #1 rule of developing stuff in concrete5.
cyborgk replied on at Permalink Reply
Hey, it turned out the solution was to TURN OFF THE CACHE!
MrKDilkington replied on at Permalink Reply
MrKDilkington
@cyborgk

Marking exchangecore's reply as the answer will help assist others who encounter this problem.
rkandiwa replied on at Permalink Reply
These guys need to stop changing the way things are done all the time. Seriously.