At Q2A V1.5.X/V1.6dev, widgets don't display(can't control) in pages which module(plugin) generated.
[Core hack for displaying]
Comment out qa-include/qa-page-admin-widgets.php (L112)
//if (!($page['flags']&QA_PAGE_FLAGS_EXTERNAL))
Replace qa-include/qa-page-default.php (L68)
//if ( isset($custompage) && !($custompage['flags']&QA_PAGE_FLAGS_EXTERNAL) ) {
if ( isset($custompage) ) {
Replace qa-include/qa-page-default.php (L79)
[from]
if ($level>=QA_USER_LEVEL_ADMIN) {
[to]
if ( (!$explicitqa) && $countslugs && !isset($categoryid) ) {
$pagemodules=qa_load_modules_with('page', 'match_request');
$request=qa_request();
foreach ($pagemodules as $pagemodule)
if ($pagemodule->match_request($request)) {
qa_set_template('plugin');
$widgets = $qa_content['widgets'];
$qa_content = $pagemodule->process_request($request);
$qa_content['widgets'] = $widgets;
}
}
if ($level>=QA_USER_LEVEL_ADMIN) {
related question:
I wish to be improved by V1.6.