Replace the main navigation on your front page with a custom one just  
for that page:

app/views/front/index.dryml

<page>
   <main-nav: replace>
     <navigation class="main-nav">
       <nav-item with="&Post">Posts</nav-item>
     </navigation>
   </main-nav:>
</page>

On 16 Dec 2008, at 16:00, Ian Wood wrote:

>
> Hi James.
>
> Thank you! This is part of what I was looking for!
> I've now redefined the <main-nav> tag so the navigation is now fixed
> without breaking the route to posts.
> So the final part of my problem is how to get index.dryml to only
> display "posts" instead of all of the models I have defined.
>
> On Dec 16, 2:35 pm, James Garlick <[email protected]> wrote:
>> You have removed the posts route, so you won't be able to navigate  
>> to /
>> posts anymore. I don't think that is what you wanted.
>>
>> Customising the navigation is easy, all you have to do is redefine
>> <main-nav>, there's an example of this in the cookbook 
>> app:http://github.com/tablatom/hobocookbook/tree/master/app/views/taglibs 
>> ...
>>
>> On 16 Dec 2008, at 13:47, [email protected] wrote:
>>
>>
>>
>>> Hello all.
>>
>>> I have what is probably an impossibly simple problem:
>>
>>> I have created a Hobo app with 4 models & controllers: post, site,
>>> sound & image
>>
>>> I want the tabbed navigation to show: home, site, sound, image with
>>> the "home" tab containing the "post" information.
>>
>>> I defined:   auto_actions :all, :except => :index in the "posts"
>>> controller to remove it from the tabs.
>>
>>> Now I need to redefine the app/views/front/index.dryml page so  
>>> that it
>>> only shows "posts" as it currently shows "images" "sounds" and  
>>> "sites"
>>
>>> I understand that this is because it is repeating "front_models" but
>>> how do I call a specific model? I'm finding customising Hobo quite
>>> hard because lots of the information I have found on the topic
>>> (Especially using DRYML and Rapid Tags) doesn't work! Very confusing
>>> for the newcomer.
>>
>>> Thanks.
>>
>>> Ian.
> >


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