I may be looking at this the wrong way, but for the life of me I cannot figure out how to create containers or categories where you cannot enter an ad. For example, I created a category of Chevrolet, and a subcategory of Camaro.

Chevrolet -> Camaro

I would like a user to be able to enter an ad under the Camaro category, but the Chevrolet category should be off limits to post an ad. Is this possible somehow?

Basically I only want someone to post an ad in the deepest nested category.

Comments

feelenjoy’s picture

You should be able to do this using the taxonomy access control

http://drupal.org/project/taxonomy_access

tyler-durden’s picture

I tried the taxonomy_access and it seems like it should work, but it blocks out all child categories once you block the parent.

eyecon-1’s picture

Me 2. Anyone have a JS snippet to validate the submission form? Any other suggestions?

mcurry’s picture

This sounds like a great idea.

So, how would you want to decide which categories are allowed or disallowed for a particular user? Roles? User IDs?

mcurry’s picture

Assigned: Unassigned » mcurry
Status: Active » Postponed (maintainer needs more info)

Perhaps it would make sense to allow admins to flag classified categories as 'read only' (which would pretty much make them a container for child categories.)

Still thinking...

lavinm’s picture

Title: How to create containers or categories where you can't post an ad? » Similar doubt:How to create containers or categories where you can't post an ad?

Im firstly subscribing to this thread, as Id need some helo on this front.

Additionally,I have a similar doubt on the lines of this thread

how do i ensure that every user can create exactly one classified ad in one day in one subcategory.

i.e if my site has in all 15 subcategories/categories, a user can publish only 15 ads in any given day (one per subcategory/category)

Any guesses how to go about this?

(I can switch to a Custom content type, if it can be done with that too)

mcurry’s picture

Assigned: mcurry » Unassigned
fgm’s picture

Title: Similar doubt:How to create containers or categories where you can't post an ad? » How to create categories where you can't post an ad?
Version: 5.x-1.5-8 » 7.x-3.x-dev
Category: support » feature
Status: Postponed (maintainer needs more info) » Active

Part of the answer could be to use module node_limitnumber (D5/D6 only) or node_limit (D6/D7 only). This basically fixes @lanvinm's problem at #6.

Going further, this could be a nice feature for a future version. Bumping to 7.x and adjusting title accordingly.

fgm’s picture

Issue summary: View changes
Status: Active » Fixed

Solution given in #8.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.