Setting Options in Widgets/Dashboard


(Burton Kent) #1

I’d like to set some options in a custom widget to search for a given string and display the results. I’ve been looking around my own dashboard and none of the widgets seem to have a text entry ability. I’m looking for some code to work with.

Any suggestions?


(Matthieu Aubry) #2

does it work if you add the 2 parameters:

filter_pattern ; defines the text we want to search for in the filter_column. Only the row with the given column matching the pattern will be returned.

filter_column ; defines the column that we want to search for a text (see filter_pattern).

(from http://dev.piwik.org/trac/wiki/API/Reference )


(Burton Kent) #3

[quote=matthieu @ May 28 2010, 05:20 AM]does it work if you add the 2 parameters:

filter_pattern ; defines the text we want to search for in the filter_column. Only the row with the given column matching the pattern will be returned.

filter_column ; defines the column that we want to search for a text (see filter_pattern).

(from dev.piwik.org/trac/wiki/API/Reference )[/quote]
I’ll try using that, thanks. Is there a suggested way to enter those terms right within the widget using a form instead of in the URL?