Quote from: tramp1357 at May 07, 2014, 06:48 AMHi, Jim!
firefox raise error:
TypeError: column.rendereroptions is undefined
name : column.rendereroptions.name
what's wrong?
P.S.: sorry for my bad english
Hi Tramp1357,
Firstly, please try your ModX installation in an alternative browser. This will show whether or not the issue is browser related.
If you cannot replicate the problem in another browser, please let me know what version of Firefox you're using and if you're a Mac or PC user and I'll do my best to help.
If the problem occurs in whatever browser you're using, then you have most likely not copied across all the code.
Make sure you have done the following:
1. Edit: core/components/migx/model/migx/migx.class.php
After this block of code (line 855):
if (isset($column['renderer']) && !empty($column['renderer'])) {
$col['renderer'] = $column['renderer'];
$handlers[] = $column['renderer'];
}
...add this code:
if (isset($column['rendereroptions']) && !empty($column['rendereroptions'])) {
$col['rendereroptions'] = $column['rendereroptions'];
$handlers[] = $column['rendereroptions'];
}
2. Check that your MIGX tv includes json that looks similar to the following example - notice the "renderoptions" key:
{"header": "Client", "width": "160", "sortable": "false", "dataIndex": "client", "renderer": "this.renderSnippet", "rendereroptions":{"name":"ExampleSnippet", "options":"height=22&width=90"}},
Let me know how you get on.
Kind regards
Jim