Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
855 views
in Q2A Core by
I want to make a second question page.  

How can i do that?
Q2A version: 1.6.1

2 Answers

0 votes
by
edited by

Good question. Because I have not really made this, my remark is just a hint.

Plugin

I think that your hope may be come true by making new page plugin using "example page" plugin as example. And you should output form of Ask page in your new page plugin.

  • Advantage: Version up of Q2A is easy
  • Disadvantage: Program making will be hard

Ask page : qa-include/qa-page-ask.php

Core hack

  1. Copy qa-include/qa-page-ask.php
  2. Paste as another file (e.g. qa-include/qa-page-ask2.php)
  3. Perform remodeling that you expect
  4. Hack qa_page_routing() in qa-include/qa-page.php
  5. Add link in Admin > Pages > "Add Link"
'ask' => 'qa-page-ask.php',
'ask2' => 'qa-page-ask2.php', // <<< Add routing
  • Advantage: Program making is easy (?)
  • Disadvantage: Version up of Q2A is hard

Of course there will be other approach.

+1 vote
by
use page overriding:

http://qa-themes.com/forums/topic/tutorial-overriding-q2a-pages

in qa_page_routing()override add a new index to $pages array with address to your php file, this file can be a copy of "qa-include/qa-page-ask.php".
by
Nice article.
...