|
Posted by Steve Pugh on 02/03/06 12:53
John Salerno wrote:
> Steve Pugh wrote:
>
> > Maybe if you told us how you
> > would like to use templates we can tell you whether DW's templating
> > system is right for you.
>
> Yeah, that might help. Basically I just want to be able to start with
> some pre-defined markup, like the DTD, the <head> and <body> tags, etc.
> But I'd like all this to simply be text in my document that I can change
> if I want. Here's what I use right now when I make a new file:
>
> -------------------
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
> <title></title>
> </head>
>
> <body>
>
> </body>
> </html>
>
> --------------------
>
> In some cases I also have extra <meta> tags that are commented out, in
> case I'd like to uncomment them and use them.
That sounds like a DW optional region. The meta tags would be in the
template but would only appear in generated pages when the user chooses
to make them appear (via the Modify > Template Properties menu),
otherwise they don't appear at all. This is perhaps better than having
them always present but commented out. So long as the page is
associated with a particular template, any optional region in that
template can be included in the page at any future date. By putting an
editable region inside an optional region, you can have sections that
optionally appear and which can be edited once they have been included.
> Also, I always need to put
> in a title, so I can't have that part "locked".
Whenever you make a template in DW the title element is by default
turned into an editable region. You would need to choose to make the
title locked at the template design stage, which obviously you wouldn't
do.
> Maybe this is too simple for DW templates.
Looks more like what you want to do is change the default document
created when File > New is invoked. That can be done but IIRC not via
the DW interface but by editing files somewhere within the DW
configuration. I haven't done this for a couple of versions so I can't
give specific instructions.
Steve
[Back to original message]
|