I've made a different solution. This way each user can decide how many tasks to show in the view, handy if the different users have different sized screens
Insert a new post in the table og_user_ws_config_options
INSERT INTO `opengoo`.`og_user_ws_config_options` (
`id` ,
`category_name` ,
`name` ,
`default_value` ,
`config_handler_class` ,
`is_system` ,
`option_order` ,
`dev_comment`
)
VALUES (
NULL , 'task panel', 'noOfTasks', '8', 'IntegerConfigHandler', '0', '100', NULL
);
Insert line
'user ws config option name noOfTasks' => 'Set number of tasks shown as default',
in language/en_us/administration.php
Insert line
og.noOfTasks = <?php echo user_config_option('noOfTasks') ?>;
in application/layouts/website.php
Insert line
var no_of_tasks = og.noOfTasks;
in public/assets/javascript/og/tasks/drawing.js, line 153
replace the 8 lines 155 og 161 with no_of_tasks