I create a post and set the Access Level to "Administrator" so that I can see how it appears within my site (just clicking VIEW only shows me the page view of it). Although this blocks general users from seeing it (they get the login page) it still appears on any list view of the template. Bug? or am I doing something wrong?
wysocki wrote: I create a post and set the Access Level to "Administrator" so that I can see how it appears within my site (just clicking VIEW only shows me the page view of it). Although this blocks general users from seeing it (they get the login page) it still appears on any list view of the template. Bug? or am I doing something wrong?
I hope you are talking about frontend. I can suggest something here.
As long as cms:pages fetches all the pages, regardless of their access_level by default (excluding only by some other parameters as in docs), you can construct list_view without your protected pages by:
1. unpublish your page
2. exclude it with cms:pages id='NOT {id of your page here}'
3. move to specific folder, named 'admin' and exclude folder 'admin' from query: cms:pages folder='NOT admin'
4. move date to some distant future, as cms:pages by default doesn't show_future_entries.
5. Create a conditional statement inside cms:pages block: <cms:if k_user_access_level le '5' > .. list pages .. </cms:if> It will show only unprotected pages for users with access_level 0, 2, 4, effectively filtering out pages with level 7 -admin and 10
- superadmin.
There are some other ways, but these should be just enough.
Hope it helps
