removing 'no category' option

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
fcherub
Posts: 2
Joined: Tue Jul 11, 2006 11:04 pm

removing 'no category' option

Post by fcherub »

Hi, I'm a newbie, just installed a couple of days ago :D
I have a question regarding categories.
Here's how I would like to use the blog: each user is single member of a group, and each group can only post to one category, this basically means each user has his/her own blog.
The problem I encounter, and I've not been able to find the solution yet by searching the forum (perhaps I missed it) is that users can still post to "no category" and I have a feeling many of my users would do this.
Ideally it would be cool if there was a setting that would force a group to choose a category. If this is not possible, could anyone help me find where I could remove the "no category" option ?

many thanks,
Federico
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: removing 'no category' option

Post by garvinhicking »

Hi!

You basically have two options:

1. Edit your include/functions_entries_admin.inc.php file, search for the dropdown that emits "NO_CATEGORY" and remove that option. This is sort of hackish, though.

2. Use the plugin "serendipity_event_entrycheck" ("Rules for publishing"). This plugin allows you to set a rule that an entry may not be puslished without a category assignment.

HTH,
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/
fcherub
Posts: 2
Joined: Tue Jul 11, 2006 11:04 pm

Thanks

Post by fcherub »

Thanks a million, the plugin's just perfect!
Post Reply