Yes, you can put other components inside of your block parameters. On 8/23/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > > > Hi Josh, > > What defined in the parameter block should be in the same > page(Somepage.html), can it refer to another html? > > A.C. > > ------------ somepage.html ---------------- > <t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > <t:parameter name="sidebarContent"> > Add this additional to the sidebar > </t:parameter> > All of this goes into the content section > > </t:layout> > > > Josh Canfield-2 wrote: > > > > I love delegate for this type of stuff. If you want to define a layout > and > > let the page decide what goes in the layout define a block parameter and > > use > > delegate to render it: > > > > (this has been truncated and modified for brevity, so while this may not > > work out of the box it's full size cousin does work...) > > > > ------------ somepage.html ---------------- > > <t:layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd > "> > > <t:parameter name="sidebarContent"> > > Add this additional to the sidebar > > </t:parameter> > > All of this goes into the content section > > > > </t:layout> > > > > > > --------- layout.html ------------ > > > > <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > > <head>...</head> > > <body> > > > > <div id="header">...</div> > > <div id="content-container"> > > <t:body/> > > </div> > > <div id="content-sidebar"> > > <!-- Let the page decide what goes in the sidebar --> > > <t:delegate to="sidebarContent"/> > > </div> > > <div id="footer">...</div> > > > > </body> > > </html> > > > > Enjoy, > > Josh > > > > > > > > -- > View this message in context: > http://www.nabble.com/T5%3ATiles--tf4310807.html#a12307416 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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.