http://cookbook.hobocentral.net/api_tag_defs/collection
by default, <collection> displays a list of cards. So you can either redefine card: <def tag="card" for="Reply"> <view:body/> </def> (check auto/rapid/cards.dryml for more examples). Or you can adjust the collection: <collection:replies> <view:body/> </collection> cheers, Bryan hobo_hippy wrote: > I'm still new to this, so bear with me. I have a model called blogs > and a model called replies. I got the replies to show on the blog show- > page (which was awesome ala agility), but it's listing the titles of > the replies (which defaults to Reply1, Reply2, etc). I understand > enough to know I need to make a change to @blog.replies, but how do I > make it list the contents of the body field I defined in the replies > model instead of the title? > > I pulled this from taglibs/auto/rapid/pages.dryml from the <def > tag="show-page" for="Blog"> part > > <section param="content-body"> > <section param="collection-section"> > <h3 param="collection-heading">Replies</h3> > > <collection:replies param/> > > <section param="add-to-collection" if="&can_create? > (@blog.replies)"> > <h3 param="add-form-heading">Add a Reply</h3> > <form with="&@reply || new_for_current_user > (@blog.replies)" owner="blog" without-cancel param> > <field-list: skip="blog"/> > <submit: label="Add"/> > </form> > </section> > </section> > </section> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
