I opened issue 1327. Can you help us fix it or post some screenshots? That 
would speed up the resolution.

On Monday, 4 February 2013 19:53:40 UTC-6, Michael Beller wrote:
>
> Thank you - the breadcrumb now displays the field Label but I found 
> another issue with the breadcrumbs ...
>
> I start with an action "manage_owners" that returns a smartgrid for 
> t_owner.  If I select the View button for the first owner, e.g. "Joe", I 
> get the following link:
>
> /playground/default/manage_owners/t_owner/view/t_owner/1
>
> with the breadcrumb "Owners" (that probably should be "Owners>Joe").
>
> If I instead select the link for Dogs for the owner in the smartgrid and 
> then select the link for Owner in the row for a Dog, I get the following 
> link for the same Owner as above:
>
> /playground/default/manage_owners/t_owner/t_dog.f_owner/1/view/t_owner/1
>
> with a misleading breadcrumb "Owners>Joe>Dogs for Owner" while viewing the 
> same form for the Owner as above.
>
> On Monday, February 4, 2013 5:44:58 PM UTC-5, Massimo Di Pierro wrote:
>>
>> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to