Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Add a new URL Parameter to Q&A to transmit the category directly to the ask page

0 votes
215 views
asked Mar 8 in Plugins by Hanslol2
retagged Mar 16 by Hanslol2
Greetings fellow Q&A Users,

i want to transmit the category in which a question will be posted via url like "mysite.bla/q2a/ask?cat=12345678"

Now i know i can change the core of Q&A to achieve this but a plugin would be better.

Any of you got advice on how to achieve this?

Thank you very much in advance
Q2A version: most recent 1.7.4

1 Answer

+1 vote
answered Mar 17 by Hanslol2
I solved this by adding a get parameter to the ask.php page and opening the ask page with this url: index.php/ask?cat=7613412.

get parameter is cat

Added a line where it checks for url parameters on this page
...