Re: [mezzanine-users] Re: Marking Django Application Pages as Active in the Navigation

2014-04-22 Thread Stephen McDonald
Stepping through the page middleware which handles assigning the page variable will probably shed some light: https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/middleware.py#L91-L124 On Tue, Apr 22, 2014 at 6:09 PM, PR pavan.ri...@gmail.com wrote: On Monday, April 21, 2014

Re: [mezzanine-users] Re: Marking Django Application Pages as Active in the Navigation

2014-04-22 Thread PR
On Tuesday, April 22, 2014 4:13:20 AM UTC-4, Stephen McDonald wrote: Stepping through the page middleware which handles assigning the page variable will probably shed some light: https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/pages/middleware.py#L91-L124 Thanks! From this I

[mezzanine-users] Re: Marking Django Application Pages as Active in the Navigation

2014-04-21 Thread Eduardo Rivas
The blog app defines it's own url patterns. For example, the list view (showing all blog posts) is mapped to /blog by default. The trick is in creating a page in the admin with the exact same slug. You have to do this to get Mezzanine to insert the page variable into your context. In the end,