On Mon, Aug 24, 2009 at 22:59, Bob Waycott<[email protected]> wrote: > Why not create a custom context processor and it to the CONTEXT_PROCESSORS > setting? You can look anything up & it's always available to your request > object. Then, you don't need to do anything in any views. Everything goes in > your context processor & is available to your templates. > I have a couple such processors in our store, one of which makes the current > cart count always available to the request. > Take a look at that. I think it's best for your needs. > Best, > Bob Waycott
Hi, thanks for your reply. The problem is that, for example, I would need to set a breadcrumb. This breadcrumb would *depend on* which view is supposed to be executed. For example, when you are viewing a product, it might say "Your are here: Store >> Special product >> product_name", but when you are looking at several products of the same category, it would display "You are here: Store >> Brushes >> Red" Now, in the moment the context processor gets executed, do I have that in the request object? I was implementing you suggestion but the GET and POST dicts are both empty. Isn't a way to like... inject an extra context to any satchmo view? Thanks, Nicolás Miyasato (miya) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo 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/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
