dataTable footer icons parameters

Hello,

I’m wrting a new plugin, and add some custom parameters in href after “#”, such as some parameters for dateRange.I add these parameter with hook “template_js_import”.

eg: "http://localhost/piwik/index.php?module=…#module=ECommerce&action=totalRevenue&idSite=1&period=day&date=2009-08-20&ec_start_date=2009-08-11&ec_end_date=2009-08-15&ec_period=hour

But I find these new parameters can not work correctly when I want to export them as CSV,xml,etc.
[attachment=98:00.png]
"Error: The parameters are not valid. The method called requires 2 parameters. Please check your URL and the method API."
This error occurs because I use my costom parameter in my API(in href: ec_start_date=2009-08-11&ec_end_date=2009-08-15&ec_period=hour).
Can piwik solve this problem:( It is very important for my plugin.

What kind of plugin are you writing?

[quote=cn_Dark @ Aug 24 2009, 10:02 AM]Hello,

I’m wrting a new plugin, and add some custom parameters in href after “#”, such as some parameters for dateRange.I add these parameter with hook “template_js_import”.

eg: http://localhost/piwik/index.php?module=Co…;ec_period=hour

But I find these new parameters can not work correctly when I want to export them as CSV,xml,etc.
[attachment=98:00.png]
"Error: The parameters are not valid. The method called requires 2 parameters. Please check your URL and the method API."
This error occurs because I use my costom parameter in my API(in href: ec_start_date=2009-08-11&ec_end_date=2009-08-15&ec_period=hour).
Can piwik solve this problem:( It is very important for my plugin.[/quote]

plugin E-Commerce, like Google analytics E-Commerce .

CnDark, if you can have a look at the broadcast.js you might find how to add custom variables.

if you have a patch to modify the core and add the ability to persit a variable, please create a ticket with the patch and we will commit after review.

See broadcast in http://dev.piwik.org/trac/browser/trunk/pl…es/broadcast.js