Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New hook to let plugins change the attributes for a website #4325

Closed
mattab opened this issue Nov 20, 2013 · 2 comments
Closed

New hook to let plugins change the attributes for a website #4325

mattab opened this issue Nov 20, 2013 · 2 comments
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Nov 20, 2013

The Site object holds information about a particular website.

There are already a few ways a plugin developer can modify data for a website: updating it via the SitesManager API, create new tables to store data, create new APIs to expose new website features.

However when building plugins we sometimes simply need to filter the website attribute data.

For this I propose to add a new hook in the Site object, that would let plugin developers change website data in memory. Several plugins could filter this way.

@mattab
Copy link
Member Author

mattab commented Nov 20, 2013

In 9b2cfaf: Fixes #4325 New hook to let plugins change the attributes for a website + moving helper getMinMaxDateAcrossWebsites to Site object

@mattab
Copy link
Member Author

mattab commented Nov 20, 2013

In d87c9a6: Refs #4325 Making the new Site hook used piwik wide so that when eg. a site name is decorated, it appears in most places decorated.

@mattab mattab added this to the 2.0 - Piwik 2.0 milestone Jul 8, 2014
@mattab mattab self-assigned this Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…or a website + moving helper getMinMaxDateAcrossWebsites to Site object
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
… when eg. a site name is decorated, it appears in most places decorated.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

1 participant