To do this the easiest way, here are the steps for a FAQs page:
1. Add a navigation element within the big array in qa_content_prepare() in qa-index.php. For example, you could change the footer:
'footer' => array(
'feedback' => array(
'url' => qa_path_html('feedback'),
'label' => qa_lang_html('main/nav_feedback'),
),
),
... to ...
'footer' => array(
'feedback' => array(
'url' => qa_path_html('feedback'),
'label' => qa_lang_html('main/nav_feedback'),
),
'faqs' => array(
'url' => qa_path_html('faqs'),
'label' => 'FAQs',
),
),
(Up to this point, you will have the navigation link on all pages, but when you navigate to the FAQs page, you will be given the 'Page not found' error. The next steps are to show what you want instead of that error.)
2. In qa-index.php, replace the following line:
$qa_template='not-found';
... with ...
$qa_template=$qa_request_lc;
(This will allow the theme to see a request was made for the FAQs page.)
3. Create an advanced custom theme by following the instructions here:
http://www.question2answer.org/advanced.php#theme-advanced
4. In your theme's qa-theme.php file, override the main() method to show something different for the FAQs request by using code like this below:
<?php
class qa_html_theme extends qa_html_theme_base
{
function main()
{
if ($this->template=='faqs') {
// output the content of your FAQS page...
} else
qa_html_theme_base::main();
}
}
?>
You can extend according to the same principle for other pages.
And of course it is planned that Question2Answer will include the ability to define your custom pages in future in a less complicated way!