Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
mattab opened this Issue · 2 comments

1 participant

@mattab
Owner

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
Owner

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

@mattab
Owner

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
@mattab mattab self-assigned this
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@mattab mattab Fixes #4325 New hook to let plugins change the attributes for a websi…
…te + moving helper getMinMaxDateAcrossWebsites to Site object
9b2cfaf
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@mattab mattab 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.
d87c9a6
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.