Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mattab opened this Issue · 2 comments

1 participant

Matthieu Aubry
Matthieu Aubry
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.

Matthieu Aubry
Owner

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

Matthieu Aubry
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.

Matthieu Aubry mattab added this to the 2.0 - Piwik 2.0 milestone
Matthieu Aubry mattab self-assigned this
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry mattab Fixes #4325 New hook to let plugins change the attributes for a websi…
…te + moving helper getMinMaxDateAcrossWebsites to Site object
9b2cfaf
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Matthieu Aubry 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.