[Catalyst] Bread crumb

Robert 'phaylon' Sedlacek rs at 474.at
Tue Feb 6 14:58:24 GMT 2007


Gert Burger wrote:

> Can someone who has implemented "bread crumbs" using catalyst please
> share their methods/problems etc. I need to implement it but I stuck
> between different implementation techniques and would like to learn from
> other people's experience.

I usually have some kind of 'depth_stack' in the stash on which I'm
pushing objects. The kind of object depends on the projects, but it could:

  - contain a DBIC row and lookup the models configuration to find
    the column to use for display.
  - carry scalar key which then fetches it's title from either the
    config or some I18N facility.
  - take the controller's or action's name as a key to make a lookup
    similar to the former solution.

-- 
# Robert 'phaylon' Sedlacek
# Perl 5/Catalyst Developer in Hamburg, Germany
{ EMail => ' rs at 474.at ', Web => ' http://474.at ' }



More information about the Catalyst mailing list