Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.2k views
in Q2A Core by
Could url of the Q2A site that is used in a question or an answer be automatically replaced by the page's title?

2 Answers

+3 votes
by
edited by

from admin -> General -> Url Structure , choose the neat URL . Using that the Page title will be displayed in the URL .

 

For that you need to set up a .htaccess file .. Instructions are here - http://www.question2answer.org/htaccess.php

 

_________________UPDATE ___________________

for making the question title as link , create a plugin with layer module with the below function 

function title()
{
    if (isset($this->content['q_view'])){
        $qlink = qa_q_path($this->content['q_view']['raw']['postid'], $this->content['q_view']['raw']['title']);
        $this->output('<a class="q-entry-title" href="' . $qlink . '">');
        qa_html_theme_base::title();
        $this->output('</a>');
    }else
        qa_html_theme_base::title();
}
by
It will be nice/neat url but still url not the the tile of the page for example clickable "Page title instead of url?", won't it.
by
Ohh .. You mean to make the "Page title instead of url?" Clickable ??
by
sorry, I don't have Q2A installed yet so I am not able to try... but yes I mean  "Page title instead of url?". That's how it works at Stackoverflow. I find the page title nicer to read than url.
by
For that I updated my answer , Please check
by
It's a good idea and it would be nice to have a plugin like this.
0 votes
by

If I'm understanding the question correctly you want an URL of question to be turned into the title of a question when pasting it in an editor. There is no plugin to do so implemented (yet). This had already been requested here:

http://www.question2answer.org/qa/34931

Anyway, you can use a filter plugin to replace the URL while saving the post. You'll have to check the max character length of the field, which is 8000 while replacing. You can't exceed that number.

...