User tests: Successful: Unsuccessful:
Similar to how the backend module triggers an event to add additional items to its output, this adds support for the mod_stats
module to do the same.
A new onGetStats
event is published with a single parameter, a context (hardcoded to mod_stats_admin
) and any plugin responding to this event is expected to return an array matching this schema:
array(
'title' => 'Stats Item Title',
'data' => 'Data to be displayed',
'icon' => 'Optional IcoMoon font icon for the row, defaulting to "info" if not set',
);
The title and data attributes MUST be defined or a row is not added.
Similar to the quickicons implementation, items can NOT be removed via the plugin event.
Add the following method to a system plugin:
public function onGetStats($context)
{
return array(
array(
'title' => 'Plays Audio',
'data' => JText::_('JNO'),
'icon' => 'music',
),
);
}
With the admin stats module enabled, you should see a new row with this data.
Based on the same thing that @mbabker did for the backend: #10870
The weblinks part is moved here: https://github.com/joomla-extensions/weblinks/pull/333/files to be included in the 3.7 version.
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End |
Labels |
Added:
?
|
I have tested this item
Yes in the backend but not in the frontend module.
I have tested this item
Labels |
Added:
?
Removed: ? |
The custom data is displayed instead of the "article hits" when "Hit Counter" is set to yes in the module options.
fixed please test again @sanderpotjer
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
I have tested this item
I tested this successfully.
Labels |
Added:
?
|
I have tested this item
I have tested this item
I have tested this item
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-27 14:33:16 |
Closed_By | ⇒ | mbabker |
@franz-wohlkoenig as you have tested the weblinks PR you have also tested here ;)