Custom Statistics Panels
Permalink Browser Info EnvironmentI was trying to register a custom stats panel to include within another of my packages however I'm running into a few issues. I've tried to follow your instructions on your website but I think I'm getting a bit confused.
http://concrete5packages.com/toolbox/stats/custom-statistics-panels...
I've modified your code so that it reads as follows:
Loader::helper('stats','tony_stats');
Loader::model('panel','tony_stats');
$urlHelper = Loader::helper('concrete/urls');
$packageHandle='tony_stats';
$statsPkg = Package::getByHandle($packageHandle);
$absoluteFilePath = $urlHelper->getPackageURL($statsPkg).'/panels/popularity/';
$result = ParticleTrafficPanel::registerPanel($absoluteFilePath);
However the resulting array contains an error message 'Register panel error, invalid directory'
Any help would be greatly appreciated.
Thanks!
Type: | Discussion |
---|---|
Status: | New |

Any advice on achieving this would be greatly appreciated.