This calls the getRequest method in the Piwik_MyPlugin_API class, which returns the Piwik_DataTable I mentioned previously. Finally, I see the datatable in my Piwik Admin UI.
I want to sort by another column and click on its column head, piwik shows me an loading bar endlessly. The same endless loading bar appears when I click on the “next” link to show the next 10 rows of data.
1.) Why Piwik is behaving like this?
2.) Is there something I do the wrong way?
Please have a look at the other plugins that are archiving data; For Archiving custom data, have a look at SteveG’s demographic Plugin: http://dev.piwik.org/trac/ticket/1436
but this is the third time I need to write this: I save my data in an OWN table in the database and NOT into the log_visit table like the Community Plugin by Steve G.
And this is not the first time I am reading the “look into the code of $insertpluginname” advice. I’ve read a lot of code. The ArchiveProcessing classes and the Piwik_DataTable class, but I still don’t understand anything. Every project I know has an proper documentation, where I can lookup things. But the documentation of Piwik is more like an big load of bricks and an chainsaw.
So I ask my question again:
How could I add data from an separate database table to the Archive?
If I am just to stupid to understand the piwik code and the so called documentation, then please tell me. sigh
Sorry, if you don’t understand the code, then we can’t really help since, as you point out, there is not really a doc at the moment… no you’re not stupid, it’s definitely non trivial code. Hopefully we can write more doc in the future, but there is always so much we can do.