Data Sources: Filter by url-encoded value
This is an open discussion with 2 replies, filed under General.
Search
Nick Dunn helped me. I can add the following line into my /workspace/data/data.mydatasource.php:
... public function grab(&$param_pool=NULL){ $this->dsParamFILTERS['paramID'] = urldecode($this->dsParamFILTERS['paramID']); ...
The question is: how can i make this change permament? So that next edit of ds won't remove this code.
change
public static function allowEditorToParse(){ return true; }
to
public static function allowEditorToParse(){ return false; }
Create an account or sign in to comment.
It seems to be bug or... i want to filter my DS by url param with spaces, e.g. 'symphony rules'. On debug page instead of this value i'm getting 'symphony+rules' and filtering returns 'no records found'. How can i solve the task?