pombreda / 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

HIDDEN pages #214

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup the page to HIDDEN
2. Traverse to her through the respective URL in browser
3. See the page.

What is the expected output? What do you see instead?
I am confused, why is this state called HIDDEN, if it can be viewed through the 
browser.
I suggest such behavior: hidden pages are not traversed through details view, 
but can be retrieved through from_path. It is a nice way, because i have lots 
of pages which have to have some content, (and other page use it) but not be 
reached via URL.
I suggest Page._visible to be rewrited to check only self.PUBLISHED.

Are you using the master version or a released version of this CMS on the
github repository?
Master

If you can write a test that reproduce the problem, there is better chance
it will be resolved quickly.
It's simple, isn't it?

Original issue reported on code.google.com by klich...@gmail.com on 13 Oct 2010 at 2:13

GoogleCodeExporter commented 9 years ago
You are right here that HIDDEN is not a very good name. Hidden mean that the 
page is hidden from the navigation, but can still be reached without problem by 
the browser.

Visible in the other end really means what is means: visible by the browser.

I would suggest to change the name of HIDDEN instead into something else. Any 
suggestion?

Original comment by batiste....@gmail.com on 13 Oct 2010 at 2:23

GoogleCodeExporter commented 9 years ago
Why would you need a page, that is hidden in navigation and is available in the 
browser? These things are not far from each other. That is my opinion.
Well, if you're not going to change the behavior of this HIDDEN, than leave 
it's name as it is, but, please, describe these statuses in the documentation - 
i haven't found (i've missed it?)

Original comment by klich...@gmail.com on 13 Oct 2010 at 2:30