Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open the tabular view in question in translate5
  2. Adjust its configuration in a way that it suits your needs
  3. Open the console in Firefox or Chrome by pressing F12
  4. Query the grid configuration by executing one of the following queries in the console:
    1. For the user management table: Ext.ComponentQuery.query('#adminUserGrid')[0].getState();
    2. For the task management table: Ext.ComponentQuery.query('#adminTaskGrid')[0].getState();
  5. Copy the result and reformat it in a way that it fits the code example shown below
  6. Open the database table Zf_configuration for editing and search for the row where name = "runtimeOptions.frontend.defaultState".
  7. 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
        }]
    }
}