You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Leon Derks <le...@cumquat.nl> on 2008/05/21 10:35:16 UTC
show page title in layout component
Hello
I use a layout component for all my pages, like below.
But for some reason, the page title is not passed to the layout
component. What am I doing wrong?
Leon
Page.tml
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
t:type="layout" title="${message:page-title}">
.....
</html>
Laout.tml:
<?xml version="1.0" encoding="utf-8"?>
<!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"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="shortcut icon" href="${asset:favicon.ico}"/>
<title>${title}</title>
</head>
<body>
<div id="container">
<t:branding t:id="branding" />
<t:heading t:id="heading"
t:breadCrumbs="basePage.breadCrumbHolder.breadCrumbs" />
<t:body />
<t:copyright t:id="copyright" />
</div>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: show page title in layout component
Posted by "Filip S. Adamsen" <fs...@fsadev.com>.
You're missing the t: namespace prefix on the title attribute.
Since you're putting it on a regular XHTML element, Tapestry won't
process the attribute without it.
-Filip
Leon Derks skrev:
> Hello
>
> I use a layout component for all my pages, like below.
> But for some reason, the page title is not passed to the layout
> component. What am I doing wrong?
> Leon
>
> Page.tml
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
> t:type="layout" title="${message:page-title}">
> .....
> </html>
>
> Laout.tml:
> <?xml version="1.0" encoding="utf-8"?>
> <!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"
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
> <link rel="shortcut icon" href="${asset:favicon.ico}"/>
> <title>${title}</title>
> </head>
> <body>
> <div id="container">
> <t:branding t:id="branding" />
> <t:heading t:id="heading"
> t:breadCrumbs="basePage.breadCrumbHolder.breadCrumbs" />
> <t:body />
> <t:copyright t:id="copyright" />
> </div>
> </body>
> </html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: show page title in layout component
Posted by Josh Canfield <jo...@thedailytube.com>.
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
> t:type="layout" title="${message:page-title}">
I believe you want to replace
title="${message:page-title}"
with
t:title="message:page-title"
Josh
On Wed, May 21, 2008 at 1:35 AM, Leon Derks <le...@cumquat.nl> wrote:
> Hello
>
> I use a layout component for all my pages, like below.
> But for some reason, the page title is not passed to the layout component.
> What am I doing wrong?
> Leon
>
> Page.tml
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"
> t:type="layout" title="${message:page-title}">
> .....
> </html>
>
> Laout.tml:
> <?xml version="1.0" encoding="utf-8"?>
> <!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"
> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
> <link rel="shortcut icon" href="${asset:favicon.ico}"/>
> <title>${title}</title>
> </head>
> <body>
> <div id="container">
> <t:branding t:id="branding" />
> <t:heading t:id="heading"
> t:breadCrumbs="basePage.breadCrumbHolder.breadCrumbs" />
> <t:body />
> <t:copyright t:id="copyright" />
> </div>
> </body>
> </html>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org