Elle Meredith said the following on 03/04/2009 11:31 PM:

> Could you suggest best practice to achieve the above?

No.  There is no such thing a a "Best Practice".  Its a nonsense term
invented by the Big Four and reeks of arrogance, the idea that there is
one Supreme "ne plus ultra" method, which of course they will show you
after you've paid them much dollars.

However there are many exceedingly good and exceedingly efficacious
practices.  And yes, we should put more of them in the Wiki.

My layouts look something like this:

<!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">
<r:snippet name="layout01-head" />
<body>

Well, that could even be a snippet, couldn't it?  Factor out whenever
you can.

And my layout01-head snippet looks like

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="description" content="... " />
<meta name="keywords" content="..." />
<meta name="author" content="Anton J Aylward" />
<r:stylesheet name="layout01-wide.css" as="link" media="screen" />
<r:stylesheet name="ayout01-print.css" as="link" media="print" />
<r:content part="head" />
<title><r:title />  </title>
</head>


Note that
        <r:content part="head" />
It means each page can have some custom meta or stylesheet or whatever
it needs to be stuffed in the <head> section.

You might want to wrap that in a
        <r:if_content part="head">




-- 
I thought about being born again, but my mother refused.
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to