Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
473 views
in Q2A Core by

I want to add a new $template value like " $this->template=='message'  " ...

Please help me

by
edited by
Try overriding  qa_controller_routing function found in https://github.com/q2a/question2answer/blob/af7fb73afd0e93a1de5488b65cf3cf6f8dcf3ead/qa-include/app/routing.php#L27

Btw, editor is a tool, but template is about layout of a page. Or do you mean $this->template=='ask' ?

1 Answer

+1 vote
by

1) make simple plugin

2) create layer

3) write functiom doctype with any conditions you may want to specify.

under this fuction you can set template as following.

$this->template = 'something';

by
Oh..Is it enough?
...