I see. You are right. I think I now fixed it in trunk. Can you please check it?
On Monday, 4 February 2013 16:28:25 UTC-6, Michael Beller wrote: > > I already use the Singular and Plural properties for the table but the > grid breadcrumbs don't appear to use them. Also, the breadcrumb uses the > field name (f_owner) and not the label (Owner). > > Here is my model ... > > db.define_table('t_owner', > Field('f_name', type='string', label=T('Name')), > format='%(f_name)s', > singular='Owner', plural='Owners', > migrate=True) > > db.define_table('t_dog', > Field('f_name', type='string', label=T('Name')), > Field('*f_owner*', type='reference t_owner', label=T('Owner')), > format='%(f_name)s', > singular='Dog', plural='Dogs', > migrate=True) > > If I start with a smartgrid for t_owner (and show the linked table for > t_dog), after selecting the "Dogs" link for an owner in the grid, the grid > will display a list of dogs but with a breadcrumb that shows "" > Owners> > Joe> > Dogs for f_owner"" > > On Monday, February 4, 2013 9:27:35 AM UTC-5, Massimo Di Pierro wrote: >> >> db.f_owner._singular = 'Owner' >> db.f_owner._plural = 'Owners' >> >> This should do what you ask. >> >> On Sunday, 3 February 2013 20:19:29 UTC-6, Michael Beller wrote: >>> >>> I can't find any way around this and it looks like this is not the >>> desired behavior for the grid breadcrumbs. One option is to change my >>> field name but that renders the label property not needed. >>> >>> Is there are way to control or modify the breadcrumbs? >>> >>> On Saturday, February 2, 2013 2:15:48 PM UTC-5, Michael Beller wrote: >>>> >>>> I'm using smartgrids to manage Owners and Dogs. While navigating to >>>> the Dogs for an Owner from the Dogs smartgrid, the breadcrumb shows: >>>> >>>> " >>>> Owners> >>>> Joe> >>>> Dogs for f_owner" ... >>>> >>>> it would be much nicer to show: >>>> >>>> " >>>> Owners> >>>> Joe>Dogs for Owner" or " >>>> Owners> >>>> Joe>Dogs for Joe". >>>> >>>> It would also be nice for the breadcrumb to show the singular property >>>> for the table, e.g., "Owner", instead of the plural property for this view. >>>> >>> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.