Template Gadget
Created by: David Brunton
Permissions: read[all users] edit[all users] reply[all users]

I'd like to see a Template Gadget, which is used for writing templates. See this post by Dug. The look and feel of this site is very nice, but there are at least three Gadgets that don't really have a look and feel- the text "email header" and "email footer" still comes out on my emails, the registration page is plain white with no nav (definitely okay, just weird) and the footer has the text "footer stuff".

I was showing my wife the platform, and she noted these things right off the bat. For demo purposes, it definitely makes a difference.

Created by: Douglas Hunter
in reply to Template Gadget
Permissions: read[all users] edit[all users] reply[all users]

On Mon, 2005-12-12 at 17:19 +0000, David Brunton wrote:

> I'd like to see a Template Gadget, which is used for writing
> templates. See this post by Dug. The look and feel of this site is
> very nice, but there are at least three Gadgets that don't really have
> a look and feel- the text "email header" and "email footer" still
> comes out on my emails, the registration page is plain white with no
> nav (definitely okay, just weird) and the footer has the text "footer
> stuff".
> 

I got rid of the template placeholders for email and the footer, and set the registration page template to match the rest. Of course, I agree that we need the template editor gadget.

Changing the template of the /register/ path is as simple as pie. This was the command that I ran, showing some of the power of the configuration hooks:

sudo perl /usr/local/src/gadgets/misc/admin/add_config.pl -g ATemplate -p /register/ -key template_dir -v '/wiki-template/'

That says set the template_dir value to /wiki-template for the path /register/ for the ATemplate gadget (which we call into to display the header, footer and nav pages).

> I was showing my wife the platform, and she noted these things right
> off the bat. For demo purposes, it definitely makes a difference.
> 

I agree. Hopefully this will be a touch better.