Hi,
There was a question I had I forgot to ask at the party today. I am trying to build a community site where multiple users from different regions will post content. There are two fields in which I would like to limit the values they can enter: Location and type.
Location field: They will be filling in the location the post pertains to. For example, if it is a news article, the location will be the city/region the event took place. I need this to be limited to only one city or surroundings per user. For this, I thought of using profile fields and constructing a view on that. The alternative of creating a role for each city is not practical.
Type field: Each content posted can be of four different types (something similar to category). They all have exactly same fields. The requirement is that one of these types is privileged and only administrators (or appropriate roles) can use this category. The rest of the categories are open to all the other users. Basically, I need to limit the value in this fields based on the permissions.
I did some searching around and found field permissions and related modules. I want something different. The field is shown to everyone but only the values are limited depending on the user. I couldn't find something for this. I also considered creating four different content types (one for each of the types) and give rights to roles appropriately but this would mean managing four different content types. If something like inheriting from one content type is possible, I can use that. Please let me know.
I would appreciate your thoughts on how can I implement this. I would prefer if there is a contributed module for this as I need this fairly quickly. If I have to write a module, please give me a nudge in the direction of the hooks I will need. If I can somehow inherit four different content types from one, that is also fine.
Thank you,
Husain
http://husainad.com
Blog - Twitter - LinkedIn
