I think I have explained myself a bit misleadingly. Thanks to your
post I have got to grips with how to control what tabs display in my
app. The final piece of the puzzle for me is to work out how I go
about replicating the appearance of the "post" page on the "home"
page. As it stands index.dryml creates an array and populates it with
the names of all of the models I have created. This creates links for
each of the models on the "home" page. The final part of my problem is
redefining this and replacing it with a display of only the "post"
model. I'm a little lost with this because show.dryml pages for all of
the models aren't created as standard so I have nothing to go on!

On Dec 16, 4:12 pm, James Garlick <[email protected]> wrote:
> 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