For modified navigation making the current "page" look current.

<def tag="main-nav">
  <navigation merge-attrs class="main-nav" param="default">
  <% currentpage = request.path_parameters['id'].upcase %>
    <repeat with="&get_nav">
        <% unless currentpage.include? this.name.upcase.gsub(' ','-') %>
             <nav-item merge-attrs param="default"><name /></nav-item>
        <% else %>
             <nav-item merge-attrs class="current" param="default"><name /></
nav-item>
        <% end %>
     </repeat>
  </navigation>
</def>

&getnav returns a collection of pages.

Should i change the rhtml parts to dryml or does it matter?

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