google-code-export / django-page-cms

Automatically exported from code.google.com/p/django-page-cms
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

load_pages sets page default to homepage when rendered on a non-cms-controlled page #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Render any page that is not managed by django-page-cms, and put {%
load_pages %} in the template
2. Output {{ current_page }}
3. Outputted page is default (first) page listed in the page CMS

What is the expected output? What do you see instead?

current_page should probably be set to "None" or something similar. The
issue here is when rendering a page navigation for "active" page classes,
asking if current_page == page (when iterating through pages in
pages/menu.html, for example).

I've attached my menu.html as an example. In my use case, {% ifequal
current_page page %} is true on the "home" page when rendering on any
non-cms controlled page.

What version of the product are you using? On what operating system?

r705

Original issue reported on code.google.com by intellin...@gmail.com on 22 Sep 2009 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in revision 706, can you confirm?

Original comment by batiste....@gmail.com on 23 Sep 2009 at 2:14

GoogleCodeExporter commented 9 years ago
Perfect!

Original comment by intellin...@gmail.com on 23 Sep 2009 at 2:15

GoogleCodeExporter commented 9 years ago

Original comment by batiste....@gmail.com on 23 Sep 2009 at 2:24