@chmielot opened this Issue on August 13th 2012

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.

@chmielot commented on August 13th 2012
@chmielot commented on August 13th 2012

Please review

@mattab commented on October 20th 2012 Member

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

@chmielot commented on October 23rd 2012

matt, this patch just fixes available functionality. Could be of course, that the existing show_export_as_image_icon parameter is deprecated. #3316 adds completely new functionality. Please also see #3327, which is similar.

@mattab commented on April 4th 2013 Member

Generalizing the task so we can check that all features/icons of the datatable are customized by plugins reusing the Piwik framework.

@anonymous-piwik-user commented on September 16th 2013

In 83261e010ae9f5d2f9d39a7589eecd0b40b1b2bf: Refs #4041, #3317, #4077, allow different visualizations to specify their own loading logic (when the appropriate footer icon is clicked) and fix a couple UI bugs in treemap.

@anonymous-piwik-user commented on September 18th 2013

In c0768bf32a5bdccb8b50ac67c922e8c57b678dc9: Refs #4041, #3317, allow visualization ID to be whole class name, allow footer icons to be customized per report/visualization, made visitor log a new visualization and removed the datatable_template display property.

@anonymous-piwik-user commented on September 18th 2013

In 604210375d71655e59767aab4f66e5645b3c7f8e: Fixes #3317, allow plugins/themes to specify their own ViewDataTable footer icons or modify existing ones.

This Issue was closed on October 16th 2013
Powered by GitHub Issue Mirror