Custom Page for Theme.

Permalink
Good day, I hope someone can help. Here are the particulars of what I am trying to do:
1) 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

 
hutman replied on at Permalink Reply
hutman
So just to recap, you have:

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?
wonda replied on at Permalink Reply
Thank you for the reply. Here is the information I can provide:

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.
hutman replied on at Permalink Reply
hutman
It sounds like everything is setup right, I know you said the cache was off, but I would try clearing it anyhow and see if that fixes it. If not it's hard to see what might be wrong without access to the Dashboard and the Code, sorry.
wonda replied on at Permalink Reply
Hey hutman; here is what I did to make sure I was actually using the correct template - I put put echo "Hello world!" in it.

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.