I went through the "Using a different template for the home page" section of the tutorial several times and I cannot get this to work. I want my home page to have a different layout than the rest of the site. I did multiple flushes and nothing changed. Any suggestions?
If your HomePage is completely different put the template directly under templates/
If it is based on Page.ss then put it under templates/Layouts.
You will need a file called HomePage.php in mysite/code and you will need to select that page type in the CMS.
To refresh hold down ctrl and add ?flush=1 to the URL. Sometimes i have had to change browsers to see a change reflected.
Somebody correct me if I am wrong, but if you create a file called WhateverPage.php in mysite/code then db/build/?flush=1 (do it in the CMS), then 'Create a WhateverPage' has to appear in the drop down for create page type. If not, something is very wrong. It seems to be it is practically the premise for the whole system. What options appear in your dropdown?
2. If you want the home page to be COMPLETELY different, add a template file called HomePage.ss to /themes/blackcandy/templates/. You can copy and paste the data from Page.ss into it and make any changes you want. If you want to edit the CSS of the design, you can either include a new stylesheet into the page or just make additions to BlackCandy's (found in /themes/blackcandy/css/).
3. This point in the tutorial is key - "Every page type also has a database table corresponding to it. Every time we modify the database, we need to rebuild it. We can do this by going to http://localhost:3000/db/build?flush=1." You need to flush the database by visiting /db/build and then refresh the CMS (F5) or the new pagetype will not be available.