Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
339 views
in Q2A Core by
edited by
so that it will be easy to edit any page, only admin should see this option..

1 Answer

+2 votes
by
 
Best answer
It's a good idea - will look into it for the next major version.

In the meantime you can do something basic by adding the following in qa_home_load_ifcategory(...) in qa-page-home.php:

After:

$qa_content['custom']=$custompage['content'];

Add:

if (qa_get_logged_in_level($qa_db)>=QA_USER_LEVEL_ADMIN)
    $qa_content['title'].=' <A HREF="'.qa_path_html('admin/pages', array('edit' => $custompage['pageid'])).'">[edit]</A>';
by
Thanks! its working.
...