Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
849 views
in Q2A Core by
Hi,

Is there a way to display all the questions with a given tag in a given category? That is, not just the list of questions in a category, and not just the list of questions in a tag, but both those limits at the same time?

Something like /qa/questions/XXX&tag=YYY or /qa/tag/YYY&cat=2?

I feel dumb asking this; I'm sure it's been asked and answered before.

Thanks!

Chris
Q2A version: 1.5
by
hi
did you got any solution ?
by
No, I didn't. If you find one please post. Thanks.

1 Answer

+4 votes
by
selected by
 
Best answer
Well, short answer is: no you can't.

In order to do this you will need to develop a plugin. I believe the easiest way to do this would be by means of a page (http://www.question2answer.org/modules.php?module=page) plugin although I think it should be possible to do so with a search (http://www.question2answer.org/modules.php?module=search) plugin too.

In the first approach, you'll have to create everything: the UI with all the needed components and the backend logic to extract the posts that match both criteria.

In the second one, I guess you'll just have to handle the user input in the search box to somehow parse it in order to distinguish between tags and categories (e.g.: "category:houses tag:cleaning").

PS: I would advise you to upgrade to 1.6.x. There have been many bug fixes that you're missing (some related to security)
by
Thanks, Pupi! I appreciate your help.
...