Overriding usageStats template files from a theme plugin

Hi @NateWr

In OJS trying to override this file pkp-lib/outputFrontend.tpl at ojs-stable-3_1_1 · pkp/pkp-lib · GitHub using a custom theme.

Placed it to my theme folder in templates/plugins/generic/usageStats/templates/ and even cleared the cache but my changes are not coming through. Am I missing something here?

Other template changes work fine in the same theme.

ping also @Vitaliy as you have used the custom templates a lot in plugins…

On the first glance, in order to allow template overriding, this line: pkp-lib/PKPUsageStatsPlugin.inc.php at ojs-stable-3_1_1 · pkp/pkp-lib · GitHub

should be change to this:
return $this->getTemplateResourceName() . ':templates/';

This method should be somehow associated with overriding, but I’m not sure :slight_smile:

aa, ok so the plugin is not ready yet. Thanks!

I see that they have created an own repository on the statsplugin, could be that this has been taken into account there.

Probably. 3.2 will upgrade to Smarty v3 and there are a fair number of small changes that go along with that.