[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

Re: creating meta tags from wmlrc variables



On Sun, Dec 09, 2001 at 02:29:00PM -0500, Louis LeBlanc wrote:
> I don't know if anyone else is on this list, but here goes.

There are ;)

> I'm trying to set up a series of meta tags for a site.
> Right now, I'm defining them in the site root .wmlrc file as follows:
> 
> -D PR_DISTRIBUTION="Global"
> -D PR_ROBOTS="ALL"
> -D PR_REVISIT-AFTER="30 days"
> etc.
> 
> What I want to do is construct a meta tag for each one as follows:
> <meta name=distribution content="Global">
> <meta name="revisit-after" content="30 days">
> <meta name="robots" Content="ALL">

  <meta name=distribution content="$(PR_DISTRIBUTION)">
  <meta name="revisit-after" content="$(PR_ROBOTS)">
  <meta name="robots" Content="$(PR_REVISIT-AFTER)">

> You probably get the picture.  How do I turn these into headers?
> 
> If there is a better way to define the header values, or if this is
> the proper way, I'd be interested in knowing.

The proper way is to define a template file for all pages.  Then you
may either hardcode these values into this template, or put them in
a global .wmlrc file as you did.

-- 
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com