sm2020
April 28, 2020, 10:23am
1
Hi @asmecher ,
I am trying to add a new column to Sections grid through a plugin, but could’t find any hooks to do so.
The grid that I am trying to add the column to is in Settings > Journal > Sections table.
I am using OJS 3.2.0-2
Many thanks
Salman
sm2020
April 28, 2020, 7:36pm
2
Hi @NateWr ,
Do you have any idea about the issue above?
Many thanks
Salman
NateWr
April 29, 2020, 8:49am
3
Hi @sm2020 ,
No, I don’t think so. I had a quick look for a hook that might work but I couldn’t find one.
sm2020
April 29, 2020, 10:48am
4
Thanks @NateWr for replying and letting me know.
ajnyga
April 29, 2020, 2:26pm
5
I think there should be a initFeatures hook in the gridhandler: pkp-lib/GridHandler.inc.php at stable-3_1_2 · pkp/pkp-lib · GitHub
But for some reason the SectionsGridhandler::initfeatures does not call the parent: https://github.com/pkp/ojs/blob/master/controllers/grid/settings/sections/SectionGridHandler.inc.php#L117-L120
I think it should, because the Categories gridhandler does call the parent there:
So I think this should be fixed for the next version, @asmecher ?
sm2020
April 29, 2020, 3:02pm
6
Hi @ajnyga ,
Thanks for mentioning this.
I have noticed the same, that the categorycategory::initfeatures hook is there but not the Journal Sections one.
Would be great to have the hook available soon.
Many thanks
Salman