Any good pattern / shortcut to do this? (breadcrumbs)

thanks
alex f

El 17/07/2009 2:45, Richard escribió:
> hello,
>
> Does anyone have a neat breadcrumb link system for web2py?
> http://en.wikipedia.org/wiki/Breadcrumb_(navigation)
>
> Currently each of my controller functions define a menu variable like
> this:
> breadcrumbs = [A('Browse', _href=URL(...)), A('Book', _href=URL(...)),
> 'View']
> And then the base view uses this to generate the links.
> However this creates a lot of redundancy for deep links.
>
> I remember in Django they use inheritance chains to build up the
> breadcrumbs to avoid this redundancy. Is there a way to do something
> like that in web2py?
>
> Richard
> >
>
>    

-- 
Alejandro Fanjul Fdez.
alex.fan...@gmail.com
www.mhproject.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to