Layout, Pages… Confusion!
Very new to Perch, having only installed a local version yesterday to play around with before starting a project for real next week! I am getting myself into a pickle and I am just hoping for some direction to tutorials.
All the tutorials tend to take a static HTML page and convert to a Perch CMS. This maybe the wrong way to think about it, but this reverse engineering approach isn't really what I want. I would like to create the site in Perch from the beginning, so that when my client decides to add a new page, the page takes on the look of the site I have created. They enter the page info, add page to the menu of choice and away they go. This is the goal!
I understand that layouts allow me to create headers, content areas and footers. So should my workflow be something similar to:
Create layouts for header, content and footer including data that can be changed by the client, page title for example. Include these in the default.php under Pages. ( <?php perch_layout('global.header'); ?> ) Create each required page in Perch itself, rather then individual files in the root.
Having tried this approach, on creating the page in Perch admin, the rendered page contains non of the items from my header and footer layout?
This could be totally the wrong approach, if so, please let me know.
Thanks in advance