Use case:
Using Widgetize-Plugin to display certain widgets on a website:
<div id="widgetIframe">
<iframe width="100%"
height="350"
src="http://host/piwik/index.php?module=Widgetize&action=iframe&columns[]=nb_visits,nb_pageviews&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=1&period=month&date=today&disableLink=1&widget=1&show_export_as_image_icon=0"
scrolling="no"
frameborder="0"
marginheight="0"
marginwidth="0"
id="visitssum"></iframe>
</div>
The show_export_as_image_icon setting has no effect, because the value (first set in parent class from request parameters) is overwritten in core/ViewDataTable/GenerateGraphHTML.php
I don't see why this shouldn't be allowed here. The patch fixes this problem.
Attachment:
3317-show_export_as_image_icon.diff
So, do you want to be able to hide the "Export as image button" ? is it what you are requesting? we could add a new parameter "showExportAsImage".
See similar #3316
Generalizing the task so we can check that all features/icons of the datatable are customized by plugins reusing the Piwik framework.
In 604210375d71655e59767aab4f66e5645b3c7f8e: Fixes #3317, allow plugins/themes to specify their own ViewDataTable footer icons or modify existing ones.