Read permissions for static pages

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
chris_e
Regular
Posts: 7
Joined: Fri Apr 18, 2008 5:20 pm
Location: Mainz, Germany

Read permissions for static pages

Post by chris_e »

Hello!

I'm new to s9y and currently finalizing my first site with it. Everything is fine, except one thing I can't seem to get right: I need to make parts of the site only viewable by certain groups. I've already defined these groups and put the users in. This works for normal posts, but not for static pages. On all settings for my static pages I chose the connected categegories where i defined special groups for reading permissions, so only them should be able to read the page. But when I log out (i. e. don't belong to a group) the pages still get displayed. Is it possible to change this, i. e. make the group rights working for my static pages, too?

Thanks for your help.
Chris
:rock
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Read permissions for static pages

Post by garvinhicking »

Hi!

Yes, static pages are not implemented as usual blog entries. Thus, they do not have "read permissions" like entry can have through category assignment.

Every staticpage is visible to every user, unless you password-protect it.

You can forbid the static page plugin to certain user groups, so that people logged in into that group will not be able to read the staticpage at all. However, they will be able to read it once logged out to the page, because event plugins are always executed for users with "no group".

The only way to change that behavior is to change the programming of integral parts of the staticpage plugin. The author of the plugin, Falk Döring, planned to do this a year or so back, but I believe there has not yet been any progress in this direction.

Maybe you can achieve what you want through normal blog entries?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
chris_e
Regular
Posts: 7
Joined: Fri Apr 18, 2008 5:20 pm
Location: Mainz, Germany

Post by chris_e »

EDIT: i found the appropriate event plugin (startpage_category)!!! thanks again.

hi garvin,

thanks for your fast reply. i already guessed it has to do with the plugin, so i will move the said posts to special categories which are only open for reading to certain groups. however, is it possible to show only certain categories on the start page? when i login as a user i see posts from all categories.

thanks for your help!
chris
:rock
Post Reply