Hi everynody
I develope my theme for ojs3 and i want to add some complex setting for my theme, so i decide to add a new tab on journal setting page in the following way:
add the below line in the init function:
HookRegistry::register('Templates::Management::Settings::website', array($this, 'callbackShowWebsiteSettingsTabs'));
add the below function in theme class
function callbackShowWebsiteSettingsTabs($hookName, $args) {
$output =& $args[2];
$request =& Registry::get('request');
$dispatcher = $request->getDispatcher();
$output .= '<li><a name="themeSetting" href="' . $dispatcher->url($request, ROUTE_COMPONENT, null, 'plugins.themes.myTheme.ThemeSettingForm' , 'index') . '">themeSetting</a></li>';
return false;
}
and finally add the below class to my theme folder
import('lib.pkp.classes.handler.PKPHandler');
class ThemeSettingForm extends PKPHandler {
function __construct() {
parent::__construct();
}
function index($args, $request) {
echo "TEST";
}
}
now i see the “themeSetting” tab on journal setting page but when click on it, its empty and when i open its link on new tab it give me the 404 error.
can anybody help me
thanks