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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: show page title in layout component
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: show page title in layout component
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]