the default main-nav implementation calls the navigation tag with
current= the page title.  when you change the name, it no longer finds
a match.

vendor/plugins/hobo/hobo/taglibs/rapid_pages.dryml:          <main-nav
current="&title" param/>

either override the whole main-nav tag including setting the current
value (not terribly uncommon to do anyway) or change the title for
those pages from Recipes... to My Recipes...

On May 19, 7:39 am, Mark Sobkowicz <[email protected]> wrote:
> I am on page 78 of the rapid rails book, where you rename a tab.   I renamed 
> the "Recipes" tab to "My Recipes", and in the browser it no longer gets the 
> "li.current" style when you select it.   I am trying to understand how hobo 
> generates html from the dryml, and I don't see why changing the text inside 
> the dryml tag makes any difference.
>
> When the line in application.dryml is :
>
> <nav-item with="&Recipe"><ht key="recipes.nav_item">Recipes</ht></nav-item>
>
> the html generated is:
>
> <li class="current">
>     <a class="class-link" href="/recipes">Recipes</a>
>   </li>
>
> But when I change the dryml to
> <nav-item with="&Recipe"><ht key="recipes.nav_item">My Recipes</ht></nav-item>
> the html generated is
>
>  <li class="">
>     <a class="class-link" href="/recipes">My Recipes</a>
>   </li>
>
> Thanks for your responses!   If there is a better place to post questions 
> like this, please let me know.
>
> Mark
>
> --
> 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 
> athttp://groups.google.com/group/hobousers?hl=en.

-- 
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.

Reply via email to