I have OJS 3.1.2-1, and oldGregg theme, and I want to show the categories chosen for an article (with link to each category) on the article landing page. Is that possible to implement? Which code should I add to the tpl-file?
We dont’t use the oldGregg theme, but we have added the categories to our own theme in the article_details.tpl (if you have only one language in your journal you could make this a bit simpler - we’ve also linked the category names to the category page):
But to get this to work we first needed to send the metadata to the template. So we added a function in the main PHP file of your theme to add this (and other metadata) to our articles. The code we used in the function is:
Great @Vitaliy!
I look forward to the new version! Since we have made our own child theme, I hope we can merge our changes so that they are in line with the new version.
Dear Daniela, I’m trying to implement your solution for our Manuscript Child Theme. Could you, please, clarify what is meant by “the main PHP file of your theme”? DefaultManuscriptChildThemePlugin.inc.php or some other?
We’re using version 3.1.2.4. But so far I can’t solve the problem…
If I paste your code into DefaultManuscriptChildThemePlugin.inc.php, I get this warning:
If this code is inserted just in the beginning of the file, I get a 500 error.
Thanks! We did not consider this question so deeply, in our practice the categories are in any case appointed by the editors, and not the authors during submission.
However it would be very useful to have on article page something like this (Paleontology is one of the categories).
We more or less successfully updated to version 3.3.0-17 and I’m very impressed by the current plugin implementation. This is how it now looks in our case (I modified the Browse Block a little):