Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
849 views
in Q2A Core by
I wondered if anyone can suggest a way of controlling what categories are shown in the drop down list on the ask form. I have a site where there are specific categories for two different types of users and I would only like to show categoryids < 1001 for one user and category ids > 1000 for other users.
 
The way I see it I can possibly do it one of two ways:
 
1 - in my theme by manipulating $form['fields']['category']['options'] and ['tags']
 However it seems that some javascript kicks in at some point and hides category_0  and sets up a category_1 which complicates matters (perhaps I could disable this bit of javascript).
 
2 - amend the sql query that is used to populate this list, but I cant find out where that is.
 
 
I'd appreciate your comments.
 
 
Q2A version: 1.6.3

Please log in or register to answer this question.

...