Extending "Extended properties for entries" plugin

Creating and modifying plugins.
Post Reply
mwcole
Posts: 2
Joined: Fri Jul 29, 2005 6:44 pm

Extending "Extended properties for entries" plugin

Post by mwcole »

I need to select which users can view which entries. I checked out the new group functionality in 0.9 and it looks great, but I need to be able to select users who can view the post on an individual basis.

I can try to code this modification myself, but I'm not sure if it requires database modifications. I'd rather not hack into the database if I can avoid it. If database functionality is required might this feature be added to 0.9 so it won't just be a hack?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Extending "Extended properties for entries" pl

Post by garvinhicking »

Basically you can achieve that by just modifying the extended properties plugin.

Italread ycontains functions to display an entry to certain groups. I do think this should suffice, a per-user setting is IMHO really a bit overkill. Wouldn't creating a special group suffice?

If you tell me the reason you need this you might be able to convince me :)

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/
mwcole
Posts: 2
Joined: Fri Jul 29, 2005 6:44 pm

Re: Extending "Extended properties for entries"

Post by mwcole »

Here are several reasons it would be useful:

1) If you don't have permission to create new groups but only want one other author to view it
2) You want the option for your authors to post notes and only have their team leader be able to view it (besides themselves). It would be tedious to make a separate group for each author-leader pair.

An alternative is to let authors not in a group allow members in that group to view their entry. That way I could create a 'Team 1 Leader' group with just one member (the team leader for Team 1) so that Team 1 could easily allow only that author to view their entry. This way only their leader and themselves can view the post.

This alternative solution may cause another issue, however. If anyone can post to any group, then what's the point of group membership? Well, group membership allows one to see all posts to that group. Besides, it's already possible to post to everyone, which includes everyone in every group, so this shouldn't be an issue.

I think the 'post to any group' solution is best. What do you think?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Extending "Extended properties for entries"

Post by garvinhicking »

Posting to a group you are not member of would raise the problem that you couldn't edit the posting without overriding the whole permission system because you are the author.

So in fact I do prefer to add a dropdown to add authors. I'll try to patch that in, stay tuned here and I'll post you when it's done. :)

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/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Extending "Extended properties for entries"

Post by garvinhicking »

Added to the plugin in latest 0.9 SVN, snapshot should contain it tomorrow. Plugin version is 1.3 of the entryproperties plugin; you need to cinfugure the plugin to show the list of users.

I have not thoroughly tested it, so reports whether it's working is appreciated.

thanks,
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/
Post Reply