Static Confusion
Posted: Tue Feb 03, 2009 4:03 am
Hi,
I read about the new features of static pages, and they sound very promising for creating custom content types, but I'm still confused about how to use them.
I'm using the bulletproof template, so I copied the backend_templates directory and the default_staticpage_backend.tpl file to the bulletproof directory. I edited the file and put in a line of text "Greg's modified default" after the <br> on the first line just to make sure I'm hitting the template in the bulletproof subdirectory and not the template back in the plugin directory.
The I go to static pages on the backend, choose "Simple Template", "New Entry", and voila, the form says "Greg's modified default" just as I expected.
Then I make a copy of default_staticpage_backend.tpl in bulletproof/backend_templates/ and name it "wish_list.tpl". I change the text from "Greg's modified default" to "Wishlist form". I plan to modify the fields in the wish_list template later, but for now I just want to make sure I'm invoking the template.
So I go to static pages, choose "wish_list" instead of "Simple Template". I'm on "New Entry" and hit the go button, and I get a totally empty space where I expected the form to be.
I gotta be missing some simple. Can anyone help?
Thanks, Greg
I read about the new features of static pages, and they sound very promising for creating custom content types, but I'm still confused about how to use them.
I'm using the bulletproof template, so I copied the backend_templates directory and the default_staticpage_backend.tpl file to the bulletproof directory. I edited the file and put in a line of text "Greg's modified default" after the <br> on the first line just to make sure I'm hitting the template in the bulletproof subdirectory and not the template back in the plugin directory.
The I go to static pages on the backend, choose "Simple Template", "New Entry", and voila, the form says "Greg's modified default" just as I expected.
Then I make a copy of default_staticpage_backend.tpl in bulletproof/backend_templates/ and name it "wish_list.tpl". I change the text from "Greg's modified default" to "Wishlist form". I plan to modify the fields in the wish_list template later, but for now I just want to make sure I'm invoking the template.
So I go to static pages, choose "wish_list" instead of "Simple Template". I'm on "New Entry" and hit the go button, and I get a totally empty space where I expected the form to be.
I gotta be missing some simple. Can anyone help?
Thanks, Greg