Bhavin Patel wrote:
HiI have a problem. I am new to radiant.
i have made a home page as root, articles as child and some posts as child
of articles.
I have following code in normal layout
You can check too as it is just a test : http://communiqs.com/admin and user
and pass are default still
<!DOCTYPE html> <html lang="en-us" xmlns="http://www.w3.org/1999/xhtml";>
<head> <meta charset="utf-8"/> <title>Demonstration</title> <link
rel="stylesheet" href="/stylesheet" media="all" title="Default"
charset="utf-8"/> </head> <body> <r:snippet name="header">
<h1><r:title/></h1> <r:content/> </r:snippet> <r:snippet name="footer">
<r:content/> </r:snippet> <r:content/> </body> </html>

You are wrapping your title and content with snippet tags.

<r:snippet name="header"><h1><r:title/></h1> <r:content/> </r:snippet>

Whether you intended that or not, hat's not how snippets work. Snippets are self-contained blocks of content, defined in the snippets area of the admin. The snippet tags are not used to define areas of a page on the fly.

If you wanted to set up the same page header for every page you could make a snippet called "header" with this inside it:

<h1><r:title /></h1>
<h3><r:content part="subhead" /></h3>

Then you could place this in your layout like so:

<body>
<r:snippet name="header" />
<r:content />
<r:content part="extended" />
</body>

I hope this clears some things up for you.



~Nate
_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to