Custom Page for Theme.
Permalink1) Created a Template, very basic with one area inside of a simple <div>
2) Activated it in my theme (this is a custom theme - very basic templates)
3) Went to Page Templates
4) Created new template called "forms_template", used icon 4th from left
5) Created new Page Time based on the above template,
6) Added a new page at: Sitemap, Home -> New Page and selected (what I believe to be) the correct
settings and template.
When I try to edit the content, I get the Content Blocks from my default Full Template.
I have searched and searched the web, tried (reviews/looked at) every tip and pointer
I could find.
Just not working, so I'm obviously doing something "basically wrong".
If I could get an idea or suggestion that would be appreciated.
Thanks Wanda
1) Page Template Name: Forms Page
2) Created Page Type: Forms (Name: Forms, Page type Handle: form), exact case
3) Page Template: Forms Page, Handle: forms_page
4) File on disk: forms_page.php,
5) I can see this in "Page Themes -> Theme"
No it does not render according to my template and cache is disabled.
This is what is in my template file on disk:
<?php require 'elements/header.php'; ?>
<div id="ras_forms"> <!-- RAS Form Area using simple div -->
<?php
$a = new Area('Form Area');
$a->display();
?>
</div> <!-- RAS Form Area using simple div -->
<?p
I know it's something quite simple, but...
Thanks again.
Nada. I rechecked my cache settings and they were indeed off. I found a hint on the web that says to "clear the cache files". I stopped my web server, nuked the files, restarted and voila.
I guess I must have had caching on at some point. I've only been using C5 for 3 days and the "built in template" was going to be far too much to carve up. I learn a great deal by "trial and error" and thought to "play with a dummy site".
So my guess is that I started this site with cache on, then turned if off after reading a post in the forum (for dev work).
I thank you for you persistence - it is very much appreciated.
A Page Template in your Dashboard and the Handle is "forms_template"
You have created a Page in your Sitemap using this template
You have added a file "forms_template.php" to your theme folder on the server
You can see the "forms_template.php" listed under the Page Templates in Theme
And it doesn't render what you have in your forms_template.php?
And you turned all caches are off and you have cleared the cache from the Dashboard?