Hi all,
Maybe someone can show me some basic steps to make a small generic plugin to display the affiliation data in user grid?
I can add a column by adding code below to the controllers/grid/settings/user/UserGridHandler.inc.php, but no data in user’s row’s “affiliation” cell exists, only column title in the grid. I see the affiliation data in gridRow.tpl ({$row|@debug_print_var}). Why it not displays in the grid?
/controllers/grid/settings/user/UserGridHandler.inc.php/
// Affiliation
$cellProvider = new DataObjectGridCellProvider();
$this->addColumn(
new GridColumn(
‘affiliation’,
‘user.affiliation’,
null,
null,
$cellProvider
)
);
Also, I known, this is not valid way to extend the PKP functionality. I think, I must to write plugin, but I dont know how. I read the PKP documentation here and I understood the basic concepts, but in this situation, I need more information, than the basic concepts. So, help please
Thanks in advance.