Thank you, I always seem to get tripped up by the colon in the wrong place (mixed parameter tags, and non parameter tags)!
All sorted! On Jan 25, 1:52 pm, Bryan Larsen <[email protected]> wrote: > On Wed, Jan 25, 2012 at 8:17 AM, Pete <[email protected]> wrote: > > Hi, > > > I am using the <extend tag="page"> > > > to redefine the layout of my app, but have run into some issues with > > duplicating the account-nav > > > I wanted the <account-nav> at the very top of the page, so redefined > > it in a different place in my 'extend' using > > > <div class="header page-header"> > > <account-nav/> > > </div> > > > but I am still seeing the original crop up as well, so now I have two. > > > How do I stop the original from showing (obviously this must be > > because I am also using <old-page merge> so have inherited, but I was > > to be able to replace, rather than see it again, - <account-nav > > replace> didn;t seem to do it. > > You're missing the colon. > > Let's suppose you want the account-nav in the footer for some reason. > Your page definition might look something like this: > > <extend tag="page"> > <old-page merge> > <account-nav: replace/> > <footer:> > <account-nav/> > </footer:> > </old-page> > </extend> > > The first account-nav uses the account-nav parameter on the page tag > (thus the colon) and the second account-nav is an invocation of the > account-nav tag. > > This is another way of saying the exact same thing: > > <extend tag="page"> > <old-page merge without-account-nav> > <footer:> > <account-nav/> > </footer:> > </old-page> > </extend> > > > > > also - where can I see the original definition of the <page> tag? > > You can see it inside of rapid_pages.dryml in the hobo source, but the > easiest way is just to click on view source for the documentation in > the cookbook: > > http://cookbook.hobocentral.net/api_tag_defs/page > > Bryan -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
