Where is dontGraphPoll passed into $_GET
Permalink
Greetings! I am attempting to disable the pie graph for the survey module. I looked at the view.php and found references to $_GET['dontGraphPoll']. It looks like this is something that can be passed to the block. Where do I configure this? I see no options in the interface about not displaying the graph. Do I need to create a custom template? If so, simply putting the view.php and view.css files into /blocks/survey/ doesn't seem to render an available template in the block menu.
To make a custom template you need to put your view files in the /blocks/block_name/custom_templates directory, adding them to the /blocks/block_name directory overrides the original directly (caching can cause odd behaviors).
Thanks. Still curious about 'dontGraphPoll' though. I did some more digging and I don't see where it can be configured. I'd much rather avoid using a complicated solution if it can be more simply handled.
dontGraphPoll is only checked by concrete/blocks/survey/view.php
So, you should be able to copy that to blocks/survey/view.php and set it yourself:
That would of course effect all survey blocks. You could do the same in a custom template: /blocks/survey/templates/dont_graph.php
Hope that helps,
John
So, you should be able to copy that to blocks/survey/view.php and set it yourself:
$_GET['dontGraphPoll'] = true;
Hope that helps,
John