...
- Open the tabular view in question in translate5
- Adjust its configuration in a way that it suits your needs
- Open the console in Firefox or Chrome by pressing F12
- Query the grid configuration by executing one of the following queries in the console:
- For the user management table: Ext.ComponentQuery.query('#adminUserGrid')[0].getState();
- For the task management table: Ext.ComponentQuery.query('#adminTaskGrid')[0].getState();
- Copy the result and reformat it in a way that it fits the code example shown below
- Open the database table Zf_configuration for editing and search for the row where name = "runtimeOptions.frontend.defaultState".
- Set the value of this row to a JSON object analogous to the example shown below
Code Block |
---|
// On this example, changes will be applied over 'adminTaskGrid' and 'adminUserGrid' //example: column configuration with column order included //NOTE: don't add the comments in your column configuration { "#adminUserGrid": { "columns": [{ "id": "targetLanguage", "width": 100 }, { "id": "sourceLanguage", "width": 100 }, { "id": "roles" }, { "id": "gender" }, { "id": "surName" }, { "id": "email" }, { "id": "login" }, { "id": "firstName" }, { "id": "userGridActionColumn" }] }, } //example: column configuration without column order included //NOTE: don't add the comments in your column configuration { "#adminTaskGrid": { "columns": [{ "id": "taskName", "hidden": true }, { "id": "taskGuid", "hidden": true }] } } |