Similar doubt:How to create containers or categories where you can't post an ad?
tyler-durden - May 15, 2008 - 23:48
| Project: | Classified Ads |
| Version: | 5.x-1.5-8 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | grateful_drupal_user |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
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.

#1
You should be able to do this using the taxonomy access control
http://drupal.org/project/taxonomy_access
#2
I tried the taxonomy_access and it seems like it should work, but it blocks out all child categories once you block the parent.
#3
Me 2. Anyone have a JS snippet to validate the submission form? Any other suggestions?
#4
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?
#5
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...
#6
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)